wrong number of parameters no longer is an error.
This commit is contained in:
parent
61158d4693
commit
0c5feb7493
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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] = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue