GNOME Bugzilla – Bug 557786
Array member handling not correct
Last modified: 2015-02-07 16:54:44 UTC
The current scanner code generates a bogus result for array members, e.g.: typedef struct { guint8 data[16]; } UtilityStruct; Gives: <record ...> <field name="data" writable="1"> <type name="uint8" c:type="guint8"/> </field> </record> The size information is lost, as well as the fact that it's an array. I'm working on a patch (it just needs some work in the typelib compiler, the parser part should already be ok).
Created attachment 121289 [details] [review] Implements support for array members, preserving their declared size
I changed the public API names to _get_array_fixed_size to be more clear about the difference between "size" and "length". Thanks for the patch! Committed r814 M ChangeLog M girepository/girparser.c M girepository/ginfo.c M girepository/girepository.h M girepository/gtypelib.h M girepository/girnode.c M girepository/girnode.h M tools/generate.c M tests/scanner/utility.h M tests/scanner/utility-1.0-expected.tgir M tests/scanner/utility-1.0-expected.gir M giscanner/transformer.py M giscanner/sourcescanner.c M giscanner/sourcescanner.h M giscanner/girwriter.py M giscanner/scannerparser.y M giscanner/ast.py r814 = d66174d194e135c86e54542714dc337f57a4e758 (git-svn)
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]