fix: resolve forward references if definition is needed in lookfor()

This commit is contained in:
ceriel
1988-09-20 13:31:57 +00:00
parent efdbabf464
commit a2464a4fa5
4 changed files with 58 additions and 15 deletions

View File

@@ -111,6 +111,7 @@ define(id, scope, kind)
*/
register t_def *df;
DO_DEBUG(options['S'], print("define %s, %x\n", id->id_text, kind));
df = lookup(id, scope, D_IMPORT, 0);
if ( /* Already in this scope */
df