Gerald Pfeifer : widl: Fix syntax to also work with older versions of bison .
Alexandre Julliard
julliard at winehq.org
Fri May 2 10:09:52 CDT 2008
Module: wine
Branch: master
Commit: 652602f5c8130dce17064b213450e231fd35f647
URL: http://source.winehq.org/git/wine.git/?a=commit;h=652602f5c8130dce17064b213450e231fd35f647
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Fri May 2 14:14:01 2008 +0200
widl: Fix syntax to also work with older versions of bison.
---
tools/widl/parser.y | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index ea8baf2..db0778a 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -747,6 +747,7 @@ field: m_attributes decl_spec declarator_list ';'
ne_union_field:
s_field ';' { $$ = $1; }
| attributes ';' { $$ = make_var(NULL); $$->attrs = $1; }
+ ;
ne_union_fields: { $$ = NULL; }
| ne_union_fields ne_union_field { $$ = append_var( $1, $2 ); }
@@ -755,6 +756,7 @@ ne_union_fields: { $$ = NULL; }
union_field:
s_field ';' { $$ = $1; }
| ';' { $$ = NULL; }
+ ;
s_field: m_attributes decl_spec declarator { $$ = $3->var;
$$->attrs = check_field_attrs($$->name, $1);
More information about the wine-cvs
mailing list