mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-20 01:11:18 +00:00
make TYPE (void) NAME valid (no args)
This commit is contained in:
parent
7f37260a9c
commit
90752b33fe
1 changed files with 6 additions and 3 deletions
|
@ -323,18 +323,21 @@ type_name
|
|||
;
|
||||
|
||||
function_decl
|
||||
: '(' param_list ')' { $$ = reverse_params ($2); }
|
||||
: '(' param_list ')' { $$ = reverse_params ($2); }
|
||||
| '(' param_list ',' ELLIPSIS ')'
|
||||
{
|
||||
$$ = new_param (0, 0, 0);
|
||||
$$->next = $2;
|
||||
$$ = reverse_params ($$);
|
||||
}
|
||||
| '(' ELLIPSIS ')' { $$ = new_param (0, 0, 0); }
|
||||
| '(' ')'
|
||||
| '(' ELLIPSIS ')' { $$ = new_param (0, 0, 0); }
|
||||
| '(' TYPE ')'
|
||||
{
|
||||
if ($2 != &type_void)
|
||||
PARSE_ERROR;
|
||||
$$ = 0;
|
||||
}
|
||||
| '(' ')' { $$ = 0; }
|
||||
;
|
||||
|
||||
param_list
|
||||
|
|
Loading…
Reference in a new issue