Commit 2fc33352 by Richard Stallman

(collect_expansion): Don't make # special in argless macro.

From-SVN: r3818
parent 52a866ce
...@@ -5218,12 +5218,12 @@ collect_expansion (buf, end, nargs, arglist) ...@@ -5218,12 +5218,12 @@ collect_expansion (buf, end, nargs, arglist)
concat = p; concat = p;
if (p == limit) if (p == limit)
error ("`##' at end of macro definition"); error ("`##' at end of macro definition");
} else { } else if (nargs >= 0) {
/* Single #: stringify following argument ref. /* Single #: stringify following argument ref.
Don't leave the # in the expansion. */ Don't leave the # in the expansion. */
exp_p--; exp_p--;
SKIP_WHITE_SPACE (p); SKIP_WHITE_SPACE (p);
if (p == limit || ! is_idstart[*p] || nargs <= 0) if (p == limit || ! is_idstart[*p])
error ("`#' operator is not followed by a macro argument name"); error ("`#' operator is not followed by a macro argument name");
else else
stringify = p; stringify = p;
......
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