From: ceriel Date: Thu, 8 Jan 1987 12:38:05 +0000 (+0000) Subject: wrong number of parameters no longer is an error. X-Git-Tag: release-5-5~5041 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0c5feb749325c05d5337d06272fe23ef110394bd;p=ack.git wrong number of parameters no longer is an error. --- diff --git a/util/cpp/replace.c b/util/cpp/replace.c index e8e78d301..846cadf5a 100644 --- a/util/cpp/replace.c +++ b/util/cpp/replace.c @@ -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); diff --git a/util/cpp/scan.c b/util/cpp/scan.c index 8be12de24..5b6a51ec8 100644 --- a/util/cpp/scan.c +++ b/util/cpp/scan.c @@ -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] = ""; } }