Commit 148597b9 by Richard Stallman

(macroexpand): Treat `foo ( )' as 0 args if foo wants 0 args.

From-SVN: r4323
parent 77cb8330
......@@ -7067,7 +7067,10 @@ macroexpand (hp, op)
if (i == 1) {
register U_CHAR *bp = args[0].raw;
register U_CHAR *lim = bp + args[0].raw_length;
while (bp != lim && is_space[*bp]) bp++;
/* cpp.texi says for foo ( ) we provide one argument.
However, if foo wants just 0 arguments, treat this as 0. */
if (nargs == 0)
while (bp != lim && is_space[*bp]) bp++;
if (bp == lim)
i = 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment