mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
keep the return def out of .qfo files (for now, anyway)
This commit is contained in:
parent
ddd7d82bcf
commit
3cf754db30
2 changed files with 10 additions and 6 deletions
|
@ -280,17 +280,21 @@ new_def (type_t *type, const char *name, scope_t *scope)
|
|||
|
||||
ALLOC (16384, def_t, defs, def);
|
||||
|
||||
*scope->tail = def;
|
||||
scope->tail = &def->def_next;
|
||||
scope->num_defs++;
|
||||
if (scope) {
|
||||
*scope->tail = def;
|
||||
scope->tail = &def->def_next;
|
||||
scope->num_defs++;
|
||||
}
|
||||
|
||||
def->return_addr = __builtin_return_address (0);
|
||||
|
||||
def->name = name ? save_string (name) : 0;
|
||||
def->type = type;
|
||||
|
||||
def->scope = scope;
|
||||
def->space = scope->space;
|
||||
if (scope) {
|
||||
def->scope = scope;
|
||||
def->space = scope->space;
|
||||
}
|
||||
|
||||
def->file = pr.source_file;
|
||||
def->line = pr.source_line;
|
||||
|
|
|
@ -1693,7 +1693,7 @@ function_expr (expr_t *e1, expr_t *e2)
|
|||
expr_t *ret = new_expr ();
|
||||
|
||||
ret->type = ex_def;
|
||||
ret->e.def = new_def (ftype->aux_type, 0, pr.scope);
|
||||
ret->e.def = new_def (ftype->aux_type, 0, 0);
|
||||
ret->e.def->ofs = def_ret.ofs;
|
||||
|
||||
call->e.block.result = ret;
|
||||
|
|
Loading…
Reference in a new issue