mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 00:40:55 +00:00
Allow ivars to use C syntax declarations.
This commit is contained in:
parent
dc6296e9b1
commit
b07392b818
1 changed files with 3 additions and 13 deletions
|
@ -171,7 +171,7 @@ int yylex (void);
|
||||||
|
|
||||||
%type <expr> const string
|
%type <expr> const string
|
||||||
|
|
||||||
%type <spec> ivar_decl ivar_declarator def_item def_list
|
%type <spec> ivar_decl def_item def_list
|
||||||
%type <spec> ivars
|
%type <spec> ivars
|
||||||
%type <param> param param_list
|
%type <param> param param_list
|
||||||
%type <symbol> methoddef
|
%type <symbol> methoddef
|
||||||
|
@ -1401,18 +1401,8 @@ ivar_decl
|
||||||
;
|
;
|
||||||
|
|
||||||
ivars
|
ivars
|
||||||
: ivar_declarator
|
: struct_decl
|
||||||
| ivars ',' { $<spec>$ = $<spec>0; } ivar_declarator
|
| ivars ',' { $<spec>$ = $<spec>0; } struct_decl
|
||||||
;
|
|
||||||
|
|
||||||
ivar_declarator
|
|
||||||
: identifier
|
|
||||||
{
|
|
||||||
$1 = check_redefined ($1);
|
|
||||||
$1->type = $<spec>0.type;
|
|
||||||
$1->visibility = current_visibility;
|
|
||||||
symtab_addsymbol (current_symtab, $1);
|
|
||||||
}
|
|
||||||
;
|
;
|
||||||
|
|
||||||
methoddef
|
methoddef
|
||||||
|
|
Loading…
Reference in a new issue