mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-24 10:00:07 +08:00
Fix last __has_include update
After this last change the radare2 project did not compile anymore. Start with BOL flag after include ends in tccpp.c. Update testcase 18.
This commit is contained in:
parent
4410dbdd7f
commit
76b88e22a4
3
tccpp.c
3
tccpp.c
@ -2633,7 +2633,8 @@ static inline void next_nomacro1(void)
|
||||
s1->include_stack_ptr--;
|
||||
p = file->buf_ptr;
|
||||
if (p == file->buffer)
|
||||
tok_flags = TOK_FLAG_BOF|TOK_FLAG_BOL;
|
||||
tok_flags = TOK_FLAG_BOF;
|
||||
tok_flags |= TOK_FLAG_BOL;
|
||||
goto redo_no_start;
|
||||
}
|
||||
} else {
|
||||
|
@ -4,6 +4,7 @@ int main()
|
||||
{
|
||||
printf("including\n");
|
||||
#include "18_include.h"
|
||||
#define test_missing_nl
|
||||
printf("done\n");
|
||||
|
||||
#define INC "18_include.h"
|
||||
|
@ -1 +1,5 @@
|
||||
printf("included\n");
|
||||
/* test file with missing newline */
|
||||
#ifndef INCLUDE
|
||||
#define INCLUDE
|
||||
#endif /* INCLUDE */
|
Loading…
Reference in New Issue
Block a user