From 0c5feb749325c05d5337d06272fe23ef110394bd 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 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] = ""; } } -- 2.34.1