mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
remove an unneeded field
This commit is contained in:
parent
cbffb4b140
commit
37d3fecd5d
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue