Commit 8f08fe6c authored by Alexandre Julliard's avatar Alexandre Julliard

wrc: Integer ids can be used for control labels instead of strings.

parent 1b32901b
...@@ -896,11 +896,9 @@ ctrls : /* Empty */ { $$ = NULL; } ...@@ -896,11 +896,9 @@ ctrls : /* Empty */ { $$ = NULL; }
; ;
lab_ctrl lab_ctrl
: tSTRING opt_comma expr ',' expr ',' expr ',' expr ',' expr optional_style_pair { : nameid_s opt_comma expr ',' expr ',' expr ',' expr ',' expr optional_style_pair {
$$=new_control(); $$=new_control();
$$->title = new_name_id(); $$->title = $1;
$$->title->type = name_str;
$$->title->name.s_name = $1;
$$->id = $3; $$->id = $3;
$$->x = $5; $$->x = $5;
$$->y = $7; $$->y = $7;
...@@ -1156,11 +1154,9 @@ gen_exctrl ...@@ -1156,11 +1154,9 @@ gen_exctrl
; ;
lab_exctrl lab_exctrl
: tSTRING opt_comma expr ',' expr ',' expr ',' expr ',' expr optional_style_pair helpid opt_data { : nameid_s opt_comma expr ',' expr ',' expr ',' expr ',' expr optional_style_pair helpid opt_data {
$$=new_control(); $$=new_control();
$$->title = new_name_id(); $$->title = $1;
$$->title->type = name_str;
$$->title->name.s_name = $1;
$$->id = $3; $$->id = $3;
$$->x = $5; $$->x = $5;
$$->y = $7; $$->y = $7;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment