pp: return newline after directive
This commit is contained in:
3
tccpp.c
3
tccpp.c
@ -1973,6 +1973,7 @@ static inline void next_nomacro1(void)
|
|||||||
file->line_num++;
|
file->line_num++;
|
||||||
tok_flags |= TOK_FLAG_BOL;
|
tok_flags |= TOK_FLAG_BOL;
|
||||||
p++;
|
p++;
|
||||||
|
maybe_newline:
|
||||||
if (0 == (parse_flags & PARSE_FLAG_LINEFEED))
|
if (0 == (parse_flags & PARSE_FLAG_LINEFEED))
|
||||||
goto redo_no_start;
|
goto redo_no_start;
|
||||||
tok = TOK_LINEFEED;
|
tok = TOK_LINEFEED;
|
||||||
@ -1986,7 +1987,7 @@ static inline void next_nomacro1(void)
|
|||||||
file->buf_ptr = p;
|
file->buf_ptr = p;
|
||||||
preprocess(tok_flags & TOK_FLAG_BOF);
|
preprocess(tok_flags & TOK_FLAG_BOF);
|
||||||
p = file->buf_ptr;
|
p = file->buf_ptr;
|
||||||
goto redo_no_start;
|
goto maybe_newline;
|
||||||
} else {
|
} else {
|
||||||
if (c == '#') {
|
if (c == '#') {
|
||||||
p++;
|
p++;
|
||||||
|
|||||||
Reference in New Issue
Block a user