Commit f803dcf8 by Richard Kenner

(rescan): Fix typo that caused tokens to be glued together improperly.

From-SVN: r8763
parent e6d8c385
/* C Compatible Compiler Preprocessor (CCCP) /* C Compatible Compiler Preprocessor (CCCP)
Copyright (C) 1986, 87, 89, 92, 93, 1994 Free Software Foundation, Inc. Copyright (C) 1986, 87, 89, 92, 93, 94, 1995 Free Software Foundation, Inc.
Written by Paul Rubin, June 1986 Written by Paul Rubin, June 1986
Adapted to ANSI C, Richard Stallman, Jan 1987 Adapted to ANSI C, Richard Stallman, Jan 1987
...@@ -3290,15 +3290,16 @@ startagain: ...@@ -3290,15 +3290,16 @@ startagain:
/* Prevent accidental token-pasting with a character /* Prevent accidental token-pasting with a character
before the macro call. */ before the macro call. */
if (!traditional && obp != op->buf if (!traditional && obp != op->buf) {
&& (obp[-1] == '-' || obp[1] == '+' || obp[1] == '&' switch (obp[-1]) {
|| obp[-1] == '|' || obp[1] == '<' || obp[1] == '>')) { case '&': case '+': case '-': case '<': case '>': case '|':
/* If we are expanding a macro arg, make a newline marker /* If we are expanding a macro arg, make a newline marker
to separate the tokens. If we are making real output, to separate the tokens. If we are making real output,
a plain space will do. */ a plain space will do. */
if (output_marks) if (output_marks)
*obp++ = '\n'; *obp++ = '\n';
*obp++ = ' '; *obp++ = ' ';
}
} }
/* Expand the macro, reading arguments as needed, /* Expand the macro, reading arguments as needed,
......
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