From 3943988d5addbea4603f9b4ee5103c604d03e8f4 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Wed, 4 Jul 2012 22:52:02 +0200 Subject: 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 --- giscanner/girwriter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'giscanner/girwriter.py') diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py index bfe82a85..cb13d21f 100644 --- a/giscanner/girwriter.py +++ b/giscanner/girwriter.py @@ -272,7 +272,9 @@ and/or use gtk-doc annotations. ''') def _write_type(self, ntype, relation=None, function=None): assert isinstance(ntype, ast.Type), ntype attrs = [] - if ntype.ctype: + if ntype.complete_ctype: + attrs.append(('c:type', ntype.complete_ctype)) + elif ntype.ctype: attrs.append(('c:type', ntype.ctype)) if isinstance(ntype, ast.Varargs): with self.tagcontext('varargs', []): -- cgit v1.2.1