fixed a problem with procedures imported from other modules but not

declared in their definition modules
This commit is contained in:
ceriel 1987-10-05 15:41:30 +00:00
parent 4c7dc7eb20
commit 5d5e497d22
3 changed files with 1 additions and 2 deletions

View file

@ -74,6 +74,7 @@ MkDef(id, scope, kind)
df->df_kind = kind;
df->df_next = id->id_def;
id->id_def = df;
if (kind == D_ERROR) df->df_type = error_type;
/* enter the definition in the list of definitions in this scope
*/

View file

@ -145,7 +145,6 @@ GetDefinitionModule(id, incr)
}
if (! df) {
df = MkDef(id, GlobalScope, D_ERROR);
df->df_type = error_type;
df->mod_vis = vis;
newsc->sc_definedby = df;
}

View file

@ -83,6 +83,5 @@ lookfor(id, vis, give_error)
if (give_error) id_not_declared(id);
df = MkDef(id->nd_IDF, vis->sc_scope, D_ERROR);
df->df_type = error_type;
return df;
}