mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
allow enum {...} name; but ignore name (eases C <-> QC header compat)
This commit is contained in:
parent
64c5983742
commit
2ce5a91373
1 changed files with 6 additions and 1 deletions
|
@ -160,10 +160,15 @@ def
|
|||
{ current_type = build_type ($1, $4); } func_def_list
|
||||
| STRUCT NAME
|
||||
{ struct_type = new_struct ($2); } '=' '{' struct_defs '}'
|
||||
| ENUM '{' enum_list opt_comma '}'
|
||||
| ENUM '{' enum_list opt_comma '}' opt_name
|
||||
{ process_enum ($3); }
|
||||
;
|
||||
|
||||
opt_name
|
||||
: /* empty */
|
||||
| NAME {}
|
||||
;
|
||||
|
||||
struct_defs
|
||||
: /* empty */
|
||||
| struct_defs struct_def ';'
|
||||
|
|
Loading…
Reference in a new issue