wrong number of parameters no longer is an error.
authorceriel <none@none>
Thu, 8 Jan 1987 12:38:05 +0000 (12:38 +0000)
committerceriel <none@none>
Thu, 8 Jan 1987 12:38:05 +0000 (12:38 +0000)
util/cpp/replace.c
util/cpp/scan.c

index e8e78d3..846cadf 100644 (file)
@@ -156,7 +156,7 @@ macro2buffer(idef, actpars, siztext)
                        /*      copy the text of the actual parameter
                                into the replacement text
                        */
-                       for (p = actpars[n - 1]; p && *p; p++) {
+                       for (p = actpars[n - 1]; *p; p++) {
                                text[pos++] = *p;
                                if (pos == size)
                                        text = Srealloc(text, size += RTEXTSIZE);
index 8be12de..5b6a51e 100644 (file)
@@ -57,12 +57,12 @@ getactuals(idef)
                /*      argument mismatch: too many or too few
                        actual parameters.
                */
-               error("argument mismatch, %s", idef->id_text);
+               warning("argument mismatch, %s", idef->id_text);
 
                while (++nr_of_params < acnt) {
                        /*      too few paraeters: remaining actuals are ""
                        */
-                       actparams[nr_of_params] = (char *) 0;
+                       actparams[nr_of_params] = "";
                }
        }