Commit graph

32 commits

Author SHA1 Message Date
Walter Dörwald
aaab30e00c Apply diff2.txt from SF patch http://www.python.org/sf/572113
(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.
2002-09-11 20:36:02 +00:00
Jack Jansen
11845e00b2 Be a lot less verbose by default. 2002-08-05 21:15:22 +00:00
Jack Jansen
ac7cb05415 Fixed to run better in unix-Python, and to cater for bgenlocations
possibly being missing.
2002-08-05 15:32:30 +00:00
Jack Jansen
bae7734eef Use universal newline input when scanning header files. 2002-08-04 21:55:25 +00:00
Just van Rossum
ec5d6b908c escape 8-bit chars when generating .py files. fixes bug #566302 2002-06-09 09:08:53 +00:00
Jack Jansen
3adf8d1dae Converted to use re in stead of regex and regsub (finally:-). 2002-04-23 22:43:37 +00:00
Jack Jansen
ededa90f67 - Added support for inherent pointer types (typedefs of arrays)
- Added a debug class variable to enable parser debugging.
2002-04-12 13:21:49 +00:00
Just van Rossum
b48f1d3f8a OSX tweak: recognize both EXTERN_API_C and EXTERN_API declarations.
Jack: I hope I didn't break anything for you!
2001-12-12 20:51:22 +00:00
Jack Jansen
fc6a89270e Don't override asplit_pat in Scanner_UH3. No reason to do so, and it broke
generating Waste.
2001-10-30 13:11:24 +00:00
Jack Jansen
3d3a91c188 Oops, left in a debug statement. It's gone now. 2001-07-17 20:44:50 +00:00
Jack Jansen
b2a1de4679 Allow [] after a parameter name. We currently take this to be the same as * in front, which isn't 100% correct but good enough. 2001-07-13 22:28:36 +00:00
Jack Jansen
ff1cc902fe Added a Parser_OSX class that can parse new-style (C-only) headers,
such as the Core Foundation ones.
2001-06-26 21:53:25 +00:00
Jack Jansen
d67566b0f0 Use the filename, not the pathname, in the definitions file
comment. This way the generated files are identical when generated on
different machines.
2001-02-27 11:04:20 +00:00
Jack Jansen
b8c68634b3 Added support for generating a single module from multiple .h files.
Allow /* */ comments within function prototypes.
2000-12-12 22:21:11 +00:00
Jack Jansen
629eee0636 ScannerPREUH3.initpatterns() should call Scanner.initpatterns() so the
new comment patterns get included.
2000-07-15 22:27:47 +00:00
Guido van Rossum
b7c298f806 Jack Jansen: Support for conditional inclusion of methods and functions 2000-06-28 20:53:33 +00:00
Guido van Rossum
f158887505 Two patches from Jack Jansen:
Three bgen mods:
- support for FSSpecs passed-by-value and points-passed-by-reference added.
- strip single-line comments when parsing header files
- if a definition is blacklisted _do_ output it, but in comment
2000-01-20 20:49:28 +00:00
Guido van Rossum
92f01c54d4 accept * in return value type and convert it to _ptr after the
typename, as in argument types.
(Jack)
1998-04-28 16:04:50 +00:00
Guido van Rossum
557f446618 Patches from Jack for new Apple headers 1998-02-23 15:30:44 +00:00
Guido van Rossum
c30461dd38 Insert filename in IOError message. 1996-08-26 14:37:47 +00:00
Guido van Rossum
e47d5f9c52 Addition by Jack to test for missing type support 1996-07-21 02:49:55 +00:00
Guido van Rossum
d544d0126d Moved customization to bgenlocations.py module. 1996-04-12 16:39:00 +00:00
Jack Jansen
d40f3c60ca New universal headers 1995-10-09 23:12:22 +00:00
Jack Jansen
b95ea18a4c Added ResObj_OptNew declaration 1995-08-17 14:32:23 +00:00
Jack Jansen
7d0bc8343f Ported to Universal Header 2.0.1f (i.e. CW6) 1995-06-09 20:56:31 +00:00
Jack Jansen
ae8a68f40c Trying again to check it in. Changes to:
- Use Universal Headers as input
- Change addpack calls to not depend on Guido's disklayout
- Checkge testprograms to use new names for some functions
1995-06-06 12:55:40 +00:00
Guido van Rossum
a4007eb816 added listing of argument types encountered 1995-03-23 10:41:10 +00:00
Guido van Rossum
ea64dea05f another round 1995-02-27 10:11:31 +00:00
Guido van Rossum
4df16c7996 read repair instructions from file 1995-02-05 16:56:02 +00:00
Guido van Rossum
80ffd6683c bgenGeneratorGroup.py: changed placement of some blank lines in output
bgenObjectDefinition.py: support chaining of object definitions
macsupport.py: support functions returning pointers to existing windows/dialogs
bgen.py: tighten rules for recognizing simple symbol definitions
1995-01-30 11:44:02 +00:00
Guido van Rossum
f808012f5e Use case-dependent variant of fnmatch 1995-01-27 02:40:02 +00:00
Guido van Rossum
01f5a81d11 Lots of new stuff again. Moved buffer types to some separate files.
Added some new-fangled features to bgenOutput.  Generate doc strings!
1995-01-25 22:59:21 +00:00