From 33384848318c767e614ba2ee2548afa8bd8d0f2b Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 8 Jan 1987 12:38:05 +0000 Subject: [PATCH] wrong number of parameters no longer is an error. --- util/cpp/replace.c | 2 +- util/cpp/scan.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/util/cpp/replace.c b/util/cpp/replace.c index e8e78d30..846cadf5 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 8be12de2..5b6a51ec 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] = ""; } }