diff options
author | Krzesimir Nowak <qdlacz@gmail.com> | 2012-07-04 22:52:02 +0200 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-07-07 17:13:40 -0400 |
commit | 3943988d5addbea4603f9b4ee5103c604d03e8f4 (patch) | |
tree | e5ca09e5c92ad4b1215d8e37ebaa071064cd60e6 /giscanner/ast.py | |
parent | 09fe4ca9b3e816f87698761f4b66bc2d0c25e4e0 (diff) | |
download | gobject-introspection-3943988d5addbea4603f9b4ee5103c604d03e8f4.tar.gz |
giscanner: Write detailed information in "type" tag's "c:type" attribute.
That is - write also type qualifiers (const and volatile here). Update
existing tests and add a new struct to regress.h having members with
type qualifiers.
https://bugzilla.gnome.org/show_bug.cgi?id=656445
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r-- | giscanner/ast.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index 456f921a..6945d60d 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -45,7 +45,8 @@ from a C type string, or a gtype_name (from g_type_name()). target_foreign=None, _target_unknown=False, is_const=False, - origin_symbol=None): + origin_symbol=None, + complete_ctype=None): self.ctype = ctype self.gtype_name = gtype_name self.origin_symbol = origin_symbol @@ -68,6 +69,7 @@ from a C type string, or a gtype_name (from g_type_name()). self.target_giname = target_giname self.target_foreign = target_foreign self.is_const = is_const + self.complete_ctype = complete_ctype @property def resolved(self): |