move external defs from the external table to the global table when they

get defined
This commit is contained in:
Bill Currie 2002-07-15 21:49:46 +00:00
parent 463c5724db
commit 295a9c1115

View file

@ -185,9 +185,9 @@ process_def (qfo_def_t *def)
} }
} }
if (def->flags & QFOD_GLOBAL) { if (def->flags & QFOD_GLOBAL) {
while ((d = Hash_Find (extern_defs, while ((d = Hash_Del (extern_defs,
strings->strings + def->name))) { strings->strings + def->name))) {
Hash_Del (extern_defs, strings->strings + d->name); Hash_Add (defined_defs, d);
if (d->full_type != def->full_type) { if (d->full_type != def->full_type) {
pr.source_file = def->file; pr.source_file = def->file;
pr.source_line = def->line; pr.source_line = def->line;