mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +00:00
Get typedef working.
This commit is contained in:
parent
cca829aa6b
commit
aeecdc84dc
1 changed files with 7 additions and 1 deletions
|
@ -346,8 +346,14 @@ external_decl_list
|
||||||
external_decl
|
external_decl
|
||||||
: var_decl
|
: var_decl
|
||||||
{
|
{
|
||||||
|
specifier_t spec = $<spec>0;
|
||||||
|
|
||||||
$1->type = append_type ($1->type, $<spec>0.type);
|
$1->type = append_type ($1->type, $<spec>0.type);
|
||||||
print_type ($1->type); puts ("\n");
|
if (spec.is_typedef) {
|
||||||
|
$1->sy_type = sy_type;
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
symtab_addsymbol (current_symtab, $1);
|
||||||
}
|
}
|
||||||
| var_decl '=' var_initializer
|
| var_decl '=' var_initializer
|
||||||
| function_decl
|
| function_decl
|
||||||
|
|
Loading…
Reference in a new issue