From 37d3fecd5d0c507cafc92bfa5ff046ba73d9a08c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 17 Jun 2002 05:28:43 +0000 Subject: [PATCH] remove an unneeded field --- tools/qfcc/include/function.h | 1 - tools/qfcc/source/function.c | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/qfcc/include/function.h b/tools/qfcc/include/function.h index a3a0fb900..ef8504252 100644 --- a/tools/qfcc/include/function.h +++ b/tools/qfcc/include/function.h @@ -45,7 +45,6 @@ typedef struct function_s { int file_line; struct def_s *def; struct scope_s *scope; - int parm_ofs[MAX_PARMS]; // allways contiguous, right? } function_t; extern function_t *current_func; diff --git a/tools/qfcc/source/function.c b/tools/qfcc/source/function.c index 48a3cc376..31ead2ca0 100644 --- a/tools/qfcc/source/function.c +++ b/tools/qfcc/source/function.c @@ -122,6 +122,7 @@ build_scope (function_t *f, def_t *func, param_t *params) def_t *def; param_t *p; def_t *argv = 0; + int parm_ofs[MAX_PARMS]; f->scope = new_scope (sc_params, new_defspace (), pr.scope); @@ -140,8 +141,8 @@ build_scope (function_t *f, def_t *func, param_t *params) if (!p->type) continue; // non-param selector def = get_def (p->type, p->name, f->scope, 1); - f->parm_ofs[i] = def->ofs; - if (i > 0 && f->parm_ofs[i] < f->parm_ofs[i - 1]) { + parm_ofs[i] = def->ofs; + if (i > 0 && parm_ofs[i] < parm_ofs[i - 1]) { error (0, "bad parm order"); abort (); }