Commit a957c794 by Richard Kenner

(handle_directive): In `#include <xxx>' directives, remove backslash-newline properly.

(handle_directive): In `#include <xxx>' directives, remove
backslash-newline properly.  Don't allow any other newlines.

From-SVN: r8036
parent 6d545b71
......@@ -3608,7 +3608,14 @@ handle_directive (ip, op)
case '<':
if (!kt->angle_brackets)
break;
while (*bp && *bp != '>') bp++;
while (bp < limit && *bp != '>' && *bp != '\n') {
if (*bp == '\\' && bp[1] == '\n') {
ip->lineno++;
copy_command = 1;
bp++;
}
bp++;
}
break;
case '/':
......
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