wrong number of parameters no longer is an error.

This commit is contained in:
ceriel 1987-01-08 12:38:05 +00:00
parent 61158d4693
commit 0c5feb7493
2 changed files with 3 additions and 3 deletions

View file

@ -156,7 +156,7 @@ macro2buffer(idef, actpars, siztext)
/* copy the text of the actual parameter /* copy the text of the actual parameter
into the replacement text into the replacement text
*/ */
for (p = actpars[n - 1]; p && *p; p++) { for (p = actpars[n - 1]; *p; p++) {
text[pos++] = *p; text[pos++] = *p;
if (pos == size) if (pos == size)
text = Srealloc(text, size += RTEXTSIZE); text = Srealloc(text, size += RTEXTSIZE);

View file

@ -57,12 +57,12 @@ getactuals(idef)
/* argument mismatch: too many or too few /* argument mismatch: too many or too few
actual parameters. actual parameters.
*/ */
error("argument mismatch, %s", idef->id_text); warning("argument mismatch, %s", idef->id_text);
while (++nr_of_params < acnt) { while (++nr_of_params < acnt) {
/* too few paraeters: remaining actuals are "" /* too few paraeters: remaining actuals are ""
*/ */
actparams[nr_of_params] = (char *) 0; actparams[nr_of_params] = "";
} }
} }