fixed a problem with procedures imported from other modules but not
authorceriel <none@none>
Mon, 5 Oct 1987 15:41:30 +0000 (15:41 +0000)
committerceriel <none@none>
Mon, 5 Oct 1987 15:41:30 +0000 (15:41 +0000)
declared in their definition modules

lang/m2/comp/def.c
lang/m2/comp/defmodule.c
lang/m2/comp/lookup.c

index 516b6fd..be972ca 100644 (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
        */
index 5df8e44..adb5e81 100644 (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;
                }
index 1c589ec..0eb38a4 100644 (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;
 }