mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 08:41:11 +00:00
Create the symbol for the struct as early as possible.
This commit is contained in:
parent
b545f72f93
commit
acced90101
1 changed files with 4 additions and 0 deletions
|
@ -491,6 +491,10 @@ enumerator
|
||||||
struct_specifier
|
struct_specifier
|
||||||
: STRUCT optional_tag '{'
|
: STRUCT optional_tag '{'
|
||||||
{
|
{
|
||||||
|
symbol_t *sym;
|
||||||
|
sym = find_struct ($1, $2, 0);
|
||||||
|
if (!sym->table)
|
||||||
|
symtab_addsymbol (current_symtab, sym);
|
||||||
current_symtab = new_symtab (current_symtab, stab_local);
|
current_symtab = new_symtab (current_symtab, stab_local);
|
||||||
}
|
}
|
||||||
struct_defs '}'
|
struct_defs '}'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue