From 3da7ca44216de9f9010c11dfe00dbf75370ff085 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 11 Feb 2023 20:29:59 +0900 Subject: [PATCH] [qfcc] Support qc function local variables This had gotten completely lost in the rework. --- tools/qfcc/source/qc-parse.y | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index 994741ce6..3cebea392 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -1259,6 +1259,16 @@ decl $$ = local_expr; local_expr = 0; } + | declspecs_ts local_expr qc_func_params + { + specifier_t spec = default_type ($1, 0); + $$ = parse_qc_params (spec, $3); + } + qc_func_decls + { + $$ = local_expr; + local_expr = 0; + } | declspecs ';' { $$ = 0; } ;