d'oh, I thought I tested with those lines in :/

This commit is contained in:
Bill Currie 2002-07-03 21:38:14 +00:00
parent 46bad45c7a
commit 0ef4a7513d

View file

@ -90,8 +90,8 @@ add_defs (qfo_t *qfo)
} else {
if (def->flags & QFOD_GLOBAL) {
if ((d = Hash_Find (defined_defs, pr.strings + def->name))) {
pr.source_file = (*def)->file;
pr.source_line = (*def)->line;
pr.source_file = def->file;
pr.source_line = def->line;
error (0, "%s redefined", pr.strings + def->name);
}
}
@ -107,8 +107,8 @@ add_defs (qfo_t *qfo)
while ((d = Hash_Find (extern_defs, pr.strings + def->name))) {
Hash_Del (extern_defs, pr.strings + d->name);
if (d->full_type != def->full_type) {
pr.source_file = (*def)->file;
pr.source_line = (*def)->line;
pr.source_file = def->file;
pr.source_line = def->line;
error (0, "type mismatch %s %s",
pr.strings + def->full_type,
pr.strings + d->full_type);