Henri Verbeet : widl: Support forward type declarations.
Alexandre Julliard
julliard at winehq.org
Thu Apr 7 07:36:50 CDT 2011
Module: wine
Branch: stable
Commit: cb32de6c1a01efba1145bab7f9cb8b8d5c43a589
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cb32de6c1a01efba1145bab7f9cb8b8d5c43a589
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Jan 27 20:11:13 2011 +0100
widl: Support forward type declarations.
(cherry picked from commit 7421bb0b61b708108a6005be541e1b1b293ca2de)
---
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 db071a7..39ebd7d 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -381,8 +381,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); }
More information about the wine-cvs
mailing list