Delinted a bit
authorceriel <none@none>
Thu, 25 Apr 1991 16:47:47 +0000 (16:47 +0000)
committerceriel <none@none>
Thu, 25 Apr 1991 16:47:47 +0000 (16:47 +0000)
lang/m2/comp/LLlex.c
lang/m2/comp/chk_expr.c
lang/m2/comp/type.c
lang/m2/comp/walk.c

index ef24d78..e047bd7 100644 (file)
@@ -29,7 +29,6 @@
 #include       "type.h"
 #include       "warning.h"
 
-extern long str2long();
 extern char *getwdir();
 
 t_token                dot,
index 8fa31e0..aca253b 100644 (file)
@@ -86,6 +86,7 @@ MkCoercion(pnd, tp)
                                break;
                        default:
                                crash("MkCoercion");
+                               /*NOTREACHED*/
                        }
                        if (flt_status == FLT_OVFL) {
                                wmess = "conversion";
@@ -912,7 +913,8 @@ ChkBinOper(expp)
 
        /* First, check BOTH operands */
 
-       retval = ChkExpression(&(exp->nd_LEFT)) & ChkExpression(&(exp->nd_RIGHT));
+       retval = ChkExpression(&(exp->nd_LEFT));
+       retval &= ChkExpression(&(exp->nd_RIGHT));
 
        tpl = BaseType(exp->nd_LEFT->nd_type);
        tpr = BaseType(exp->nd_RIGHT->nd_type);
index cb806b8..715cbef 100644 (file)
@@ -719,7 +719,7 @@ ForceForwardTypeDef(df)
                node_error(nd, "\"%s\" is not a type", df1->df_idf->id_text);
        }
        while (df1 && df1->df_kind == D_FORWTYPE) {
-               t_def *df2 = df1->df_forw_def;
+               df2 = df1->df_forw_def;
                df1->df_type = df->df_type;
                SolveForwardTypeRefs(df1);
                free_def(df1);
index b7fe1cd..31f844e 100644 (file)
@@ -901,10 +901,12 @@ DoForInit(nd)
        register t_def *df;
        t_type *base_tp;
        t_type *tpl, *tpr;
+       int r;
 
-       if (!( ChkVariable(&(nd->nd_LEFT), D_USED|D_DEFINED) &
-              ChkExpression(&(right->nd_LEFT)) &
-              ChkExpression(&(right->nd_RIGHT)))) return 0;
+       r = ChkVariable(&(nd->nd_LEFT), D_USED|D_DEFINED);
+       r &= ChkExpression(&(right->nd_LEFT));
+       r &= ChkExpression(&(right->nd_RIGHT));
+       if (!r) return 0;
 
        df = nd->nd_LEFT->nd_def;
        if (df->df_kind == D_FIELD) {