From: Juerg Billeter Date: Fri, 23 Nov 2007 20:25:57 +0000 (+0000) Subject: add support for anonymous structs and unions (gcc extension) X-Git-Tag: VALA_0_1_5~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1204798fffa03a70f7c52ed635e6cd1b3ba78bd9;p=platform%2Fupstream%2Fvala.git add support for anonymous structs and unions (gcc extension) 2007-11-23 Juerg Billeter * gobject-introspection/cparser.y: add support for anonymous structs and unions (gcc extension) svn path=/trunk/; revision=711 --- diff --git a/ChangeLog b/ChangeLog index c977b02..1fc5136 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-11-23 Jürg Billeter + * gobject-introspection/cparser.y: add support for anonymous structs + and unions (gcc extension) + +2007-11-23 Jürg Billeter + * vapi/packages/poppler-glib/: update to use vala-gen-introspect * vapi/poppler-glib.vapi: regenerated diff --git a/gobject-introspection/cparser.y b/gobject-introspection/cparser.y index d432fd3..415607e 100644 --- a/gobject-introspection/cparser.y +++ b/gobject-introspection/cparser.y @@ -739,7 +739,11 @@ struct_declarator_list ; struct_declarator - : declarator + : /* empty, support for anonymous structs and unions */ + { + $$ = csymbol_new (CSYMBOL_TYPE_INVALID); + } + | declarator | ':' constant_expression { $$ = csymbol_new (CSYMBOL_TYPE_INVALID);