Commit 1204798f authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

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
parent 3e984b4e
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
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment