From d05fcecae4c8259237ee112784f70710269a90c1 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 18 Jan 2025 20:48:40 +0900 Subject: [PATCH] [qfcc] Handle storage blocks for parameters Klik is the only code base that uses them, so the param storage class check got confused by them. --- tools/qfcc/source/qc-parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index 11032abe6..d3c4f30ce 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -534,7 +534,8 @@ static param_t * make_param (specifier_t spec, rua_ctx_t *ctx) { //FIXME should not be sc_global - if (spec.storage == sc_global) { + //FIXME if (spec.storage == sc_global || spec.storage == sc_extern) { + if (spec.storage < sc_inout) { spec.storage = sc_param; }