mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-07 01:42:04 +00:00
[qfcc] Finish type decl for type_ref
I guess I'd wanted to avoid supporting automatic types in type functions, but that broke long and unsigned int: either no type, or just int, depending on the decl style.
This commit is contained in:
parent
a938f1c507
commit
b4387cd881
1 changed files with 5 additions and 1 deletions
|
@ -1276,7 +1276,11 @@ type_list
|
|||
;
|
||||
|
||||
type_ref
|
||||
: type_ref_spec { $$ = new_type_expr ($1.type); }
|
||||
: type_ref_spec
|
||||
{
|
||||
specifier_t spec = default_type ($1, 0);
|
||||
$$ = new_type_expr (spec.type);
|
||||
}
|
||||
| CLASS_NAME { $$ = new_type_expr ($1->type); }
|
||||
| TYPE_NAME
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue