diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2009-01-12 23:24:01 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2009-01-12 23:24:01 +0000 |
commit | 9256e916164ec557ed66f92a0d6d95bb286cdf8b (patch) | |
tree | e481541d55ca9eafb63684f2ee41d48096b8eac5 /giscanner/sourcescanner.py | |
parent | e81c4681cc88a00fcd841c5a68d860d3714b55d7 (diff) | |
download | gobject-introspection-9256e916164ec557ed66f92a0d6d95bb286cdf8b.tar.gz |
Bug 563591 – Flags not recognized when there is no introspection data
2009-01-12 Johan Dahlin <jdahlin@async.com.br>
Bug 563591 – Flags not recognized when there is no introspection data
* giscanner/ast.py:
* giscanner/girwriter.py:
* giscanner/giscannermodule.c (type_get_is_bitfield):
* giscanner/glibast.py:
* giscanner/glibtransformer.py:
* giscanner/scannerparser.y:
* giscanner/sourcescanner.c (gi_source_type_copy):
* giscanner/sourcescanner.h:
* giscanner/sourcescanner.py:
* giscanner/transformer.py:
* tests/scanner/foo-1.0-expected.gir:
* tests/scanner/foo-1.0-expected.tgir:
* tests/scanner/foo.h:
Large parts of this patch was done by Jürg Billeter.
svn path=/trunk/; revision=1025
Diffstat (limited to 'giscanner/sourcescanner.py')
-rw-r--r-- | giscanner/sourcescanner.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py index 5018bf43..56aac93e 100644 --- a/giscanner/sourcescanner.py +++ b/giscanner/sourcescanner.py @@ -104,7 +104,7 @@ def ctype_name(ctype): class SourceType(object): __members__ = ['type', 'base_type', 'name', 'type_qualifier', - 'child_list'] + 'child_list', 'is_bitfield'] def __init__(self, scanner, stype): self._scanner = scanner @@ -140,6 +140,10 @@ class SourceType(object): continue yield SourceSymbol(self._scanner, symbol) + @property + def is_bitfield(self): + return self._stype.is_bitfield + class SourceSymbol(object): __members__ = ['const_int', 'const_string', 'ident', 'type', 'base_type'] |