summaryrefslogtreecommitdiff
path: root/gobject-introspection
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2007-11-23 20:25:57 +0000
committerJürg Billeter <juergbi@src.gnome.org>2007-11-23 20:25:57 +0000
commit1204798fffa03a70f7c52ed635e6cd1b3ba78bd9 (patch)
tree2707f119e407c8b11b4ced685aaa773638bb590d /gobject-introspection
parent3e984b4e71dd5de365072062adf7c646119e6173 (diff)
downloadvala-1204798fffa03a70f7c52ed635e6cd1b3ba78bd9.tar.gz
add support for anonymous structs and unions (gcc extension)
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
Diffstat (limited to 'gobject-introspection')
-rw-r--r--gobject-introspection/cparser.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/gobject-introspection/cparser.y b/gobject-introspection/cparser.y
index d432fd3ee..415607e9b 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);