fix wrc to parse some Borland dialog resources
Robert Shearman
rob at codeweavers.com
Mon Mar 7 10:45:01 CST 2005
Filip Navara wrote:
> Michael Lin wrote:
>
>> * change wrc to parse '&' and '~' when specifying style
>
>
> I believe the attached patch would be better solution...you can use
> arbitrary expressions in the style definitions with Microsoft Resource
> Compiler...
In that case, "style '|' style" and "tNOT xpr" are already handled by
the xpr rules so this can be made a lot simpler.
>Index: tools/wrc/parser.y
>===================================================================
>--- tools/wrc/parser.y (revision 13795)
>+++ tools/wrc/parser.y (working copy)
>@@ -995,9 +995,8 @@
>
> style
> : style '|' style { $$ = new_style($1->or_mask | $3->or_mask, $1->and_mask | $3->and_mask); free($1); free($3);}
>- | '(' style ')' { $$ = $2; }
>- | any_num { $$ = new_style($1, 0); }
>- | tNOT any_num { $$ = new_style(0, $2); }
>+ | xpr { $$ = new_style($1, 0); }
>+ | tNOT xpr { $$ = new_style(0, $2); }
> ;
>
>
Rob
More information about the wine-devel
mailing list