From 85e481b66eae4f99aafc5483955edc83b3368545 Mon Sep 17 00:00:00 2001 From: grischka Date: Mon, 6 Jul 2009 21:12:45 +0200 Subject: [PATCH] pp: return newline after directive --- tccpp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tccpp.c b/tccpp.c index 3dc83ee..d8d8eaa 100644 --- a/tccpp.c +++ b/tccpp.c @@ -1973,6 +1973,7 @@ static inline void next_nomacro1(void) file->line_num++; tok_flags |= TOK_FLAG_BOL; p++; +maybe_newline: if (0 == (parse_flags & PARSE_FLAG_LINEFEED)) goto redo_no_start; tok = TOK_LINEFEED; @@ -1986,7 +1987,7 @@ static inline void next_nomacro1(void) file->buf_ptr = p; preprocess(tok_flags & TOK_FLAG_BOF); p = file->buf_ptr; - goto redo_no_start; + goto maybe_newline; } else { if (c == '#') { p++;