(macarg): Except for reporting error, treat unterminated macro call as
if it were terminated, since `macroexpand' relies on *argptr being
filled in.
From-SVN: r9543
int paren = 0;
int newlines = 0;
int comments = 0;
+ char *result = 0;
/* Try to parse as much of the argument as exists at this
input stack level. */
while (bp == ip->buf + ip->length) {
if (instack[indepth].macro == 0) {
- free (buffer);
- return "unterminated macro call";
+ result = "unterminated macro call";
+ break;
}
ip->macro->type = T_MACRO;
if (ip->free_ptr)
}
argptr->stringified_length = totlen;
}
- return 0;
+ return result;
}
\f
/* Scan text from START (inclusive) up to LIMIT (exclusive),