Commit 69e47210 by Neil Booth Committed by Neil Booth

re PR preprocessor/3571 (cpp -traditional inserts line breaks)

	PR preprocessor/3571
	* tradcpp.c (handle_directive): Skip non-vertical space.

From-SVN: r45633
parent f0581dc7
2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk> 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
PR preprocessor/3571
* tradcpp.c (handle_directive): Skip non-vertical space.
2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
* cppmain.c (setup_callbacks): Set line callback only * cppmain.c (setup_callbacks): Set line callback only
if outputting preprocessed source. if outputting preprocessed source.
......
...@@ -2075,7 +2075,7 @@ handle_directive (ip, op) ...@@ -2075,7 +2075,7 @@ handle_directive (ip, op)
while (cp != buf && is_space(cp[-1])) cp--; while (cp != buf && is_space(cp[-1])) cp--;
cp++; cp++;
SKIP_WHITE_SPACE (xp); SKIP_WHITE_SPACE (xp);
} else if (is_space (*xp)) { } else if (is_nvspace (*xp)) {
*cp++ = *xp++; *cp++ = *xp++;
SKIP_WHITE_SPACE (xp); SKIP_WHITE_SPACE (xp);
} }
......
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