summaryrefslogtreecommitdiffstats
path: root/Tools/bgen
Commit message (Collapse)AuthorAgeFilesLines
* Merge p3yk branch with the trunk up to revision 45595. This breaks a fairThomas Wouters2006-04-211-2/+3
| | | | | | | | | | | | | | | | | | | | number of tests, all because of the codecs/_multibytecodecs issue described here (it's not a Py3K issue, just something Py3K discovers): http://mail.python.org/pipermail/python-dev/2006-April/064051.html Hye-Shik Chang promised to look for a fix, so no need to fix it here. The tests that are expected to break are: test_codecencodings_cn test_codecencodings_hk test_codecencodings_jp test_codecencodings_kr test_codecencodings_tw test_codecs test_multibytecodec This merge fixes an actual test failure (test_weakref) in this branch, though, so I believe merging is the right thing to do anyway.
* Whitespace normalization.Tim Peters2006-02-111-1/+1
|
* One more mod for support of C++ classes.Jack Jansen2006-02-101-1/+1
|
* For overriding C++ methods we also need to know whether a parameterJack Jansen2006-02-104-22/+45
| | | | is an output parameter or not. Added support for that.
* Fixed an oversight and a misunderstanding of PEP253:Jack Jansen2006-02-071-2/+20
| | | | | | | | | - Call tp_dealloc on the static baseclass, not dynamic (which leads to infinite loops with more than one baseclass) - Call tp_new and tp_init on baseclasses (overridable) -This line, and those below, will be ignored-- M bgen/bgenObjectDefinition.py
* Whitespace normalization.Tim Peters2005-12-252-8/+7
|
* Enable optional "const" argument to _New routines.Jack Jansen2005-11-211-2/+3
|
* Added a class MallocHeapOutputBufferType for types that are passedJack Jansen2005-09-201-0/+29
| | | | as &buffer, &size and allocated by the called function.
* Added support for (optionally) bracketing calls withJack Jansen2005-09-201-0/+8
| | | | Py_{BEGIN,END}_ALLOW_THREADS.
* Whitespace normalization.Tim Peters2005-07-171-5/+5
|
* Added an option to the scanner to generated marked-up HTML from the inputJack Jansen2005-07-171-6/+161
| | | | | file. This should make it a lot easier (I hope) to get the regular expressions right.
* Whitespace normalization.Tim Peters2005-07-107-29/+29
|
* Handle argref so it can be overridden more easily in a subclass.Jack Jansen2005-07-081-1/+1
|
* Allow for (optional) const declaration.Jack Jansen2005-07-054-20/+43
|
* Factored out the code that creates argument lists and formats for PyArg_ParseJack Jansen2005-07-031-19/+26
| | | | and Py_BuildValue.
* Sigh, changed the argument names in the tp_init function: to make them beJack Jansen2005-07-031-7/+7
| | | | | more in line with other methods "self" and "args" had to be renamed "_self" and "_args". Did "_kwds" too, for consistency.
* Added methods mkvaluePreCheck and getargsPreCheck, which are called (forJack Jansen2005-07-013-1/+22
| | | | each variable) before calling Py_BuildValue and PyArg_Parse.
* More factorization: added a method getrvforcallit(). This allows a C++Jack Jansen2005-06-301-8/+8
| | | | | bridge to combine declaration and assignment to the return value temporary, allowing us to handle functions returning const values.
* Added optional suppport for storage modifiers (virtual/static/inline/etc)Jack Jansen2005-06-293-2/+20
| | | | and conditional generation of objects and methods.
* More factorization to help C++ support.Jack Jansen2005-06-286-18/+51
|
* Normalize whitespace to avoid offending Bug Day volunteers.Tim Peters2005-06-245-13/+13
|
* Added a missing newline Output().Jack Jansen2005-06-231-0/+1
|
* Revamped type declaration so the basic routines return a list of strings.Jack Jansen2005-06-226-44/+47
| | | | | | This allows variables to be declared as formal arguments. The bgenType.declare method now simply outputs all declarations on separate lines ending in semicolons.
* Added support for optional modifiers to functions/methods (such as C++ const,Jack Jansen2005-06-212-6/+19
| | | | static for methods, inline, etc).
* More factorization.Jack Jansen2005-06-162-3/+14
|
* More tweaks for C++ support. Still doesn't seem to break anything:-)Jack Jansen2005-06-143-10/+47
|
* Minor tweaks, to allow some (out-of-tree, until successful) tinkeringJack Jansen2005-06-102-11/+15
| | | | with C++.
* Whitespace normalization, via reindent.py.Tim Peters2004-07-1810-129/+126
|
* Call the correct tp_dealloc.Jack Jansen2004-07-151-2/+2
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-32/+32
| | | | From SF patch #852334.
* Got rid of macglue.h, replacing it by pymactoolbox.h where relevant.Jack Jansen2003-11-201-13/+0
| | | | Cleaned up various things in the toolbox modules.
* Fix a bunch of typos in documentation, docstrings and comments.Walter Dörwald2003-10-201-1/+1
| | | | (From SF patch #810751)
* Updated the doc strings to refer to PyArg_Parse and Py_BuildValue in steadJack Jansen2003-01-241-4/+7
| | | | of getargs() and mkvalue().
* Sigh, due to sloppiness on my part bgen has become pretty mixed up wrt. tabsJack Jansen2003-01-1913-2168/+2168
| | | | and spaces. Detabbed the lot.
* Oops, old-style types don't have a tp_free slot. Call PyObject_FreeJack Jansen2002-12-231-2/+6
| | | | directly in that case.
* Always use self->ob_type->tp_free when freeing an object.Jack Jansen2002-12-191-1/+1
|
* Always output an inheritance-aware version of the xxxx_Check() macro. AlsoJack Jansen2002-12-191-5/+1
| | | | fixed that macro to actually work:-)
* Added an optional longname argument to Module, which gives the full,Jack Jansen2002-12-171-2/+7
| | | | | | externally visible name of the module. This is so that type names can be shown as "Carbon.File.FSSpec" even though the real name of the module is "_File".
* Fixed typo.Jack Jansen2002-12-051-1/+1
|
* Added PEP253 support.Jack Jansen2002-12-031-11/+114
|
* Fixed two silly bugs in the PEP252 support code, added an assertJack Jansen2002-11-281-3/+10
| | | | that basechain isn't set, and made the output a bit prettier.
* Added a class PEP252Mixin. By adding this to your ObjectDefinition youJack Jansen2002-11-251-2/+127
| | | | | | | | | | | get PEP-252 style objects in stead of old-fashioned objects. In stead of defining a GetattrHook you declare a class variable getsetlist, which contains tuples (name, getcode, setcode, docstring). Only lightly tested: the code still works if you don't inherit PEP252Mixin and the code works if you inherit it but don't define any getters or setters. Also, this will not work together with the "poor mans inheritance" offered by method chains, so the CF module will remain with old-style objects until PEP253 is supported too.
* Apply diff2.txt from SF patch http://www.python.org/sf/572113Walter Dörwald2002-09-113-23/+19
| | | | | | | | (with one small bugfix in bgen/bgen/scantools.py) This replaces string module functions with string methods for the stuff in the Tools directory. Several uses of string.letters etc. are still remaining.
* Moved CoreFoundation type support to bgen/macsupport.Jack Jansen2002-08-221-0/+11
|
* iUse PyDoc_STR() around docstrings.Jack Jansen2002-08-161-1/+1
|
* Be a lot less verbose by default.Jack Jansen2002-08-052-6/+7
|
* Fixed to run better in unix-Python, and to cater for bgenlocationsJack Jansen2002-08-051-3/+7
| | | | possibly being missing.
* Moved bgenlocations to the Mac/Lib directory. Not perfect, but better thanJack Jansen2002-08-051-13/+0
| | | | | | | where it was: it is really a configuration file, not a normal module. By moving it into Mac/Lib we can now also store the location of bgen itself in there, which is needed because bgen isn't installed.
* Specify pathnames in a way that works on both OS9 and OSX.Jack Jansen2002-08-041-3/+3
| | | | You'll still have to manually edit it, though...
* Use universal newline input when scanning header files.Jack Jansen2002-08-041-3/+3
|