mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Struct and ivar declarations now seem to work.
However, not bit-fields.
This commit is contained in:
parent
1f6abb2cce
commit
29fbc3b073
1 changed files with 12 additions and 2 deletions
|
@ -540,8 +540,18 @@ struct_decl_list
|
|||
;
|
||||
|
||||
struct_decl
|
||||
: function_decl {}
|
||||
| var_decl {}
|
||||
: function_decl
|
||||
{
|
||||
$1->type = append_type ($1->type, $<spec>0.type);
|
||||
$1->type = find_type ($1->type);
|
||||
symtab_addsymbol (current_symtab, $1);
|
||||
}
|
||||
| var_decl
|
||||
{
|
||||
$1->type = append_type ($1->type, $<spec>0.type);
|
||||
$1->type = find_type ($1->type);
|
||||
symtab_addsymbol (current_symtab, $1);
|
||||
}
|
||||
| var_decl ':' expr %prec COMMA {}
|
||||
| ':' expr %prec COMMA {}
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue