mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
make sure an initialized def has the correct source file and line info
This commit is contained in:
parent
2cd6b68669
commit
f6cdbdf63c
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue