mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
qfcc.c:
def->scope is always non-0 qc-parse.y: link defs from child scopes correctly
This commit is contained in:
parent
0747bcb099
commit
a771beed74
2 changed files with 2 additions and 2 deletions
|
@ -516,7 +516,7 @@ statement_block
|
|||
current_scope = current_scope->parent;
|
||||
*current_scope->tail = defs;
|
||||
while (*current_scope->tail) {
|
||||
current_scope->tail = &(*current_scope->tail)->next;
|
||||
current_scope->tail = &(*current_scope->tail)->def_next;
|
||||
current_scope->num_defs++;
|
||||
}
|
||||
$$ = $3;
|
||||
|
|
|
@ -342,7 +342,7 @@ finish_compilation (void)
|
|||
}
|
||||
|
||||
for (def = pr.scope->head; def; def = def->def_next) {
|
||||
if (def->scope || def->absolute)
|
||||
if (def->scope->type < sc_params || def->absolute)
|
||||
continue;
|
||||
relocate_refs (def->refs, def->ofs);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue