Some minor mods in mixed mode checking
authorceriel <none@none>
Wed, 27 Mar 1991 12:46:37 +0000 (12:46 +0000)
committerceriel <none@none>
Wed, 27 Mar 1991 12:46:37 +0000 (12:46 +0000)
lang/cem/cemcom.ansi/ch3.c
lang/cem/cemcom.ansi/idf.c

index 537c7ea..8f71703 100644 (file)
@@ -515,9 +515,9 @@ legal_mixture(tp, otp, diag)
        struct type *tp, *otp;
        int diag;
 {
-       register struct proto *pl = tp->tp_proto, *opl = otp->tp_proto;
+       struct proto *pl = tp->tp_proto, *opl = otp->tp_proto;
        int retval = 1;
-       struct proto *prot;
+       register struct proto *prot;
        int fund;
 
        ASSERT( (pl != 0) ^ (opl != 0));
index cf85bf7..00cebe1 100644 (file)
@@ -409,7 +409,7 @@ global_redecl(idf, new_sc, tp)
        register struct def *def = idf->id_def;
 
        while (def->df_level != L_GLOBAL) def = def->next;
-       if (!equal_type(tp, def->df_type, 0, 0)) {
+       if (!equal_type(tp, def->df_type, 0, 1)) {
                error("redeclaration of %s with different type", idf->id_text);
                return;
        } else  update_proto(tp, def->df_type);