diff options
author | Johan Dahlin <johan@gnome.org> | 2008-08-31 16:10:18 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-08-31 16:10:18 +0000 |
commit | 0745eb0c9920523471afedf058de4fdee573e1b1 (patch) | |
tree | dbacde2bccd57d4b9c80ea98c129f7979f69542a /giscanner/sourcescanner.py | |
parent | a80f4a68ea3d66dd87732da00ee3cd3c6e42b1de (diff) | |
download | gobject-introspection-0745eb0c9920523471afedf058de4fdee573e1b1.tar.gz |
Parse GCC extensions in the parser instead of just undeffing them in the
2008-08-31 Johan Dahlin <johan@gnome.org>
* giscanner/scannerlexer.l:
* giscanner/scannerparser.y:
* giscanner/sourcescanner.h:
* giscanner/sourcescanner.py:
Parse GCC extensions in the parser instead of just undeffing them
in the pre-processor.
svn path=/trunk/; revision=553
Diffstat (limited to 'giscanner/sourcescanner.py')
-rw-r--r-- | giscanner/sourcescanner.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py index a58c44a2..46ab7f5a 100644 --- a/giscanner/sourcescanner.py +++ b/giscanner/sourcescanner.py @@ -56,6 +56,7 @@ TYPE_QUALIFIER_NONE = 0 TYPE_QUALIFIER_CONST = 1 << 1 TYPE_QUALIFIER_RESTRICT = 1 << 2 TYPE_QUALIFIER_VOLATILE = 1 << 3 +TYPE_QUALIFIER_EXTENSION = 1 << 4 FUNCTION_NONE = 0 FUNCTION_INLINE = 1 << 1 @@ -231,11 +232,6 @@ class SourceScanner(object): stdin=subprocess.PIPE, stdout=subprocess.PIPE) - proc.stdin.write('#define __const\n') - proc.stdin.write('#define __extension__\n') - proc.stdin.write('#define __inline\n') - proc.stdin.write('#define __restrict\n') - for define in defines: proc.stdin.write('#ifndef %s\n' % (define, )) proc.stdin.write('# define %s\n' % (define, )) |