add support for anonymous structs and unions (gcc extension)
authorJuerg Billeter <j@bitron.ch>
Fri, 23 Nov 2007 20:25:57 +0000 (20:25 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Fri, 23 Nov 2007 20:25:57 +0000 (20:25 +0000)
2007-11-23  Juerg Billeter  <j@bitron.ch>

* gobject-introspection/cparser.y: add support for anonymous structs
  and unions (gcc extension)

svn path=/trunk/; revision=711

ChangeLog
gobject-introspection/cparser.y

index c977b02..1fc5136 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-11-23  Jürg Billeter  <j@bitron.ch>
 
+       * gobject-introspection/cparser.y: add support for anonymous structs
+         and unions (gcc extension)
+
+2007-11-23  Jürg Billeter  <j@bitron.ch>
+
        * vapi/packages/poppler-glib/: update to use vala-gen-introspect
 
        * vapi/poppler-glib.vapi: regenerated
index d432fd3..415607e 100644 (file)
@@ -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);