diff options
author | Colin Walters <walters@src.gnome.org> | 2009-02-04 00:48:24 +0000 |
---|---|---|
committer | Colin Walters <walters@src.gnome.org> | 2009-02-04 00:48:24 +0000 |
commit | e3e84400529899854fe06f7d110685f50be26a18 (patch) | |
tree | 6d7ab0ca6fb6b44969063070024628cddc2cfb6e /ChangeLog | |
parent | ab991adecd8659a8b2843f4191ca4aa16aa4e121 (diff) | |
download | gobject-introspection-e3e84400529899854fe06f7d110685f50be26a18.tar.gz |
Bug 555960 - Nested structs and unions (generation portion)
Patch from Andreas Rottmann <a.rottmann@gmx.at>.
* tests/scanner/utility.h (UtilityTaggedValue): Make the union
member anonymous.
(UtilityByte): New union typedef with an unnamed struct in it.
* giscanner/transformer.py (Transformer._create_struct): Create
unnamed structs for symbols with a None ident.
(Transformer._create_union): Likewise.
* giscanner/girwriter.py (GIRWriter._write_record): Allow name
being None.
(GIRWriter._write_union): Likewise.
* girepository/girparser.c (start_struct): Allow a NULL name for
non-toplevel structs.
(start_union): Likewise.
* tests/scanner/utility.h (UtilityTaggedValue): New struct
typedef, which has a nested union member.
* tests/scanner/utility-expected.gir: Adapted.
* giscanner/transformer.py (Transformer._create_member): Create
struct/union members if appropriate.
(Transformer._create_struct, Transformer._create_union): Allow for
structs/unions without a C type.
* giscanner/glibtransformer.py (GLibTransformer._resolve_field):
We don't need to resolve non-typef'd
(GLibTransformer._resolve_field): Add cases for non-typedef'd
struct/union "fields".
* giscanner/girwriter.py (GIRWriter._write_record): Allow for
records without a C type.
(GIRWriter._write_field): structs and unions may appear in places
where fields do.
svn path=/trunk/; revision=1082
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -1,4 +1,41 @@ 2009-02-03 Andreas Rottmann <a.rottmann@gmx.at> + + * tests/scanner/utility.h (UtilityTaggedValue): Make the union + member anonymous. + (UtilityByte): New union typedef with an unnamed struct in it. + + * giscanner/transformer.py (Transformer._create_struct): Create + unnamed structs for symbols with a None ident. + (Transformer._create_union): Likewise. + + * giscanner/girwriter.py (GIRWriter._write_record): Allow name + being None. + (GIRWriter._write_union): Likewise. + + * girepository/girparser.c (start_struct): Allow a NULL name for + non-toplevel structs. + (start_union): Likewise. + + * tests/scanner/utility.h (UtilityTaggedValue): New struct + typedef, which has a nested union member. + * tests/scanner/utility-expected.gir: Adapted. + + * giscanner/transformer.py (Transformer._create_member): Create + struct/union members if appropriate. + (Transformer._create_struct, Transformer._create_union): Allow for + structs/unions without a C type. + + * giscanner/glibtransformer.py (GLibTransformer._resolve_field): + We don't need to resolve non-typef'd + (GLibTransformer._resolve_field): Add cases for non-typedef'd + struct/union "fields". + + * giscanner/girwriter.py (GIRWriter._write_record): Allow for + records without a C type. + (GIRWriter._write_field): structs and unions may appear in places + where fields do. + +2009-02-03 Andreas Rottmann <a.rottmann@gmx.at> * girepository/girparser.c (ParseContext): Removed member current_node, added node_stack instead. |