mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 04:30:43 +00:00
some storage and obj file fixes
This commit is contained in:
parent
1478dcd9c9
commit
211b11c8ae
2 changed files with 4 additions and 0 deletions
|
@ -150,6 +150,7 @@ set_storage_bits (def_t *def, storage_class_t storage)
|
|||
case st_local:
|
||||
break;
|
||||
}
|
||||
def->initialized = 0;
|
||||
}
|
||||
|
||||
static const char *vector_component_names[] = {"%s_x", "%s_y", "%s_z"};
|
||||
|
@ -248,6 +249,8 @@ get_def (type_t *type, const char *name, scope_t *scope,
|
|||
}
|
||||
}
|
||||
set_storage_bits (def, storage);
|
||||
if (storage == st_extern || storage == st_static)
|
||||
def_initialized (def);
|
||||
|
||||
return def;
|
||||
}
|
||||
|
|
|
@ -190,6 +190,7 @@ setup_data (void)
|
|||
func->line_info = LittleLong (f->aux->line_info);
|
||||
func->num_parms = LittleLong (function_parms (f, func->parm_size));
|
||||
func->relocs = LittleLong (reloc - relocs);
|
||||
func->num_relocs = LittleLong (count_relocs (f->refs));
|
||||
write_relocs (f->refs, &reloc);
|
||||
|
||||
if (f->scope)
|
||||
|
|
Loading…
Reference in a new issue