mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
Allow typedefed types and classes in parameters.
This commit is contained in:
parent
aeecdc84dc
commit
a4eaa2a89b
1 changed files with 6 additions and 1 deletions
|
@ -588,6 +588,11 @@ param_declaration
|
|||
$2->type = append_type ($2->type, $1.type);
|
||||
$$ = new_param (0, $2->type, $2->name);
|
||||
}
|
||||
| type_name_or_class_name var_decl
|
||||
{
|
||||
$2->type = append_type ($2->type, $1->type);
|
||||
$$ = new_param (0, $2->type, $2->name);
|
||||
}
|
||||
| abstract_decl { $$ = new_param (0, $1->type, 0); }
|
||||
| ELLIPSIS { $$ = new_param (0, 0, 0); }
|
||||
;
|
||||
|
@ -598,7 +603,7 @@ abstract_decl
|
|||
$$ = $2;
|
||||
$$->type = append_type ($$->type, $1.type);
|
||||
}
|
||||
| TYPE_NAME abs_decl
|
||||
| type_name_or_class_name abs_decl
|
||||
{
|
||||
$$ = $2;
|
||||
$$->type = append_type ($$->type, $1->type);
|
||||
|
|
Loading…
Reference in a new issue