widl: Support forward type declarations.
This commit is contained in:
parent
8872239088
commit
7421bb0b61
|
@ -384,8 +384,11 @@ statement:
|
||||||
|
|
||||||
typedecl:
|
typedecl:
|
||||||
enumdef
|
enumdef
|
||||||
|
| tENUM aIDENTIFIER { $$ = type_new_enum($2, FALSE, NULL); }
|
||||||
| structdef
|
| structdef
|
||||||
|
| tSTRUCT aIDENTIFIER { $$ = type_new_struct($2, FALSE, NULL); }
|
||||||
| uniondef
|
| uniondef
|
||||||
|
| tUNION aIDENTIFIER { $$ = type_new_nonencapsulated_union($2, FALSE, NULL); }
|
||||||
| attributes enumdef { $$ = $2; $$->attrs = check_enum_attrs($1); }
|
| attributes enumdef { $$ = $2; $$->attrs = check_enum_attrs($1); }
|
||||||
| attributes structdef { $$ = $2; $$->attrs = check_struct_attrs($1); }
|
| attributes structdef { $$ = $2; $$->attrs = check_struct_attrs($1); }
|
||||||
| attributes uniondef { $$ = $2; $$->attrs = check_union_attrs($1); }
|
| attributes uniondef { $$ = $2; $$->attrs = check_union_attrs($1); }
|
||||||
|
|
Loading…
Reference in New Issue