fixed a problem with procedures imported from other modules but not
declared in their definition modules
This commit is contained in:
parent
4c7dc7eb20
commit
5d5e497d22
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue