Commit e1fe312f by Richard Kenner

(rescan): Do not preserve newlines after macro name if rescanning a macro expansion.

(rescan): Do not preserve newlines after macro name
if rescanning a macro expansion.  Instead, preserve them if
not outputting marks.

From-SVN: r8389
parent 10022ff7
......@@ -3275,10 +3275,10 @@ startagain:
/* This is now known to be a macro call.
Discard the macro name from the output,
along with any following whitespace just copied,
but preserve newlines at the top level since this
but preserve newlines if not outputting marks since this
is more likely to do the right thing with line numbers. */
obp = op->buf + obufp_before_macroname;
if (ip->macro != 0)
if (output_marks)
op->lineno = op_lineno_before_macroname;
else {
int newlines = op->lineno - op_lineno_before_macroname;
......
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