(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
This commit is contained in:
parent
6d545b717c
commit
a957c7944d
@ -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 '/':
|
||||
|
Loading…
Reference in New Issue
Block a user