mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[qfcc] Support qc function local variables
This had gotten completely lost in the rework.
This commit is contained in:
parent
3a297c70b3
commit
3da7ca4421
1 changed files with 10 additions and 0 deletions
|
@ -1259,6 +1259,16 @@ decl
|
|||
$$ = local_expr;
|
||||
local_expr = 0;
|
||||
}
|
||||
| declspecs_ts local_expr qc_func_params
|
||||
{
|
||||
specifier_t spec = default_type ($1, 0);
|
||||
$<spec>$ = parse_qc_params (spec, $3);
|
||||
}
|
||||
qc_func_decls
|
||||
{
|
||||
$$ = local_expr;
|
||||
local_expr = 0;
|
||||
}
|
||||
| declspecs ';' { $$ = 0; }
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in a new issue