wrc: change menu item options to use optional comma

Michael Lin mlin at corvu.com.au
Thu Apr 14 01:58:12 CDT 2005


Menu item options uses optional comma separator in Borland compiler

ChangeLog:
* change menu item options to use optional comma

-------------- next part --------------
Index: tools/wrc/parser.y
===================================================================
RCS file: /home/wine/wine/tools/wrc/parser.y,v
retrieving revision 1.49
diff -u -r1.49 parser.y
--- tools/wrc/parser.y	8 Mar 2005 19:09:16 -0000	1.49
+++ tools/wrc/parser.y	14 Apr 2005 06:35:46 -0000
@@ -1283,12 +1285,12 @@
  */
 item_options
 	: /* Empty */				{ $$ = 0; }
-	| ',' tCHECKED		item_options	{ $$ = $3 | MF_CHECKED; }
-	| ',' tGRAYED		item_options	{ $$ = $3 | MF_GRAYED; }
-	| ',' tHELP		item_options	{ $$ = $3 | MF_HELP; }
-	| ',' tINACTIVE		item_options	{ $$ = $3 | MF_DISABLED; }
-	| ',' tMENUBARBREAK	item_options	{ $$ = $3 | MF_MENUBARBREAK; }
-	| ',' tMENUBREAK	item_options	{ $$ = $3 | MF_MENUBREAK; }
+	| opt_comma tCHECKED		item_options	{ $$ = $3 | MF_CHECKED; }
+	| opt_comma tGRAYED		item_options	{ $$ = $3 | MF_GRAYED; }
+	| opt_comma tHELP		item_options	{ $$ = $3 | MF_HELP; }
+	| opt_comma tINACTIVE		item_options	{ $$ = $3 | MF_DISABLED; }
+	| opt_comma tMENUBARBREAK	item_options	{ $$ = $3 | MF_MENUBARBREAK; }
+	| opt_comma tMENUBREAK	item_options	{ $$ = $3 | MF_MENUBREAK; }
 	;
 
 /* ------------------------------ MenuEx ------------------------------ */


More information about the wine-patches mailing list