remove an unneeded field

This commit is contained in:
Bill Currie 2002-06-17 05:28:43 +00:00
parent cbffb4b140
commit 37d3fecd5d
2 changed files with 3 additions and 3 deletions

View file

@ -45,7 +45,6 @@ typedef struct function_s {
int file_line; int file_line;
struct def_s *def; struct def_s *def;
struct scope_s *scope; struct scope_s *scope;
int parm_ofs[MAX_PARMS]; // allways contiguous, right?
} function_t; } function_t;
extern function_t *current_func; extern function_t *current_func;

View file

@ -122,6 +122,7 @@ build_scope (function_t *f, def_t *func, param_t *params)
def_t *def; def_t *def;
param_t *p; param_t *p;
def_t *argv = 0; def_t *argv = 0;
int parm_ofs[MAX_PARMS];
f->scope = new_scope (sc_params, new_defspace (), pr.scope); 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) if (!p->type)
continue; // non-param selector continue; // non-param selector
def = get_def (p->type, p->name, f->scope, 1); def = get_def (p->type, p->name, f->scope, 1);
f->parm_ofs[i] = def->ofs; parm_ofs[i] = def->ofs;
if (i > 0 && f->parm_ofs[i] < f->parm_ofs[i - 1]) { if (i > 0 && parm_ofs[i] < parm_ofs[i - 1]) {
error (0, "bad parm order"); error (0, "bad parm order");
abort (); abort ();
} }