[PATCH 4/4] widl: Support forward type declarations.

Henri Verbeet hverbeet at codeweavers.com
Thu Jan 27 13:11:13 CST 2011


---
 tools/widl/parser.y |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index 30ae5f4..3850e65 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -384,8 +384,11 @@ statement:
 
 typedecl:
 	  enumdef
+	| tENUM aIDENTIFIER                     { $$ = type_new_enum($2, FALSE, NULL); }
 	| structdef
+	| tSTRUCT aIDENTIFIER                   { $$ = type_new_struct($2, FALSE, NULL); }
 	| uniondef
+	| tUNION aIDENTIFIER                    { $$ = type_new_nonencapsulated_union($2, FALSE, NULL); }
 	| attributes enumdef                    { $$ = $2; $$->attrs = check_enum_attrs($1); }
 	| attributes structdef                  { $$ = $2; $$->attrs = check_struct_attrs($1); }
 	| attributes uniondef                   { $$ = $2; $$->attrs = check_union_attrs($1); }
-- 
1.7.3.4




More information about the wine-patches mailing list