From f6cdbdf63cc01ff0f2850471e2cbeac7bfd056ce Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 7 Sep 2002 06:45:51 +0000 Subject: [PATCH] make sure an initialized def has the correct source file and line info --- tools/qfcc/source/def.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/qfcc/source/def.c b/tools/qfcc/source/def.c index 2476bd495..403e7e8b0 100644 --- a/tools/qfcc/source/def.c +++ b/tools/qfcc/source/def.c @@ -223,6 +223,10 @@ get_def (type_t *type, const char *name, scope_t *scope, return def; if (def) { + if (storage != st_extern && !def->initialized) { + def->file = pr.source_file; + def->line = pr.source_line; + } if (!def->external || storage == st_extern) return def; } else {