wrc: Integer ids can be used for control labels instead of strings.
This commit is contained in:
parent
1b32901b7b
commit
8f08fe6c0d
|
@ -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
|
||||||
;
|
;
|
||||||
|
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue