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 changed files with 7 additions and 1 deletions
3
tccpp.c
3
tccpp.c
|
@ -2633,7 +2633,8 @@ static inline void next_nomacro1(void)
|
||||||
s1->include_stack_ptr--;
|
s1->include_stack_ptr--;
|
||||||
p = file->buf_ptr;
|
p = file->buf_ptr;
|
||||||
if (p == file->buffer)
|
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;
|
goto redo_no_start;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -4,6 +4,7 @@ int main()
|
||||||
{
|
{
|
||||||
printf("including\n");
|
printf("including\n");
|
||||||
#include "18_include.h"
|
#include "18_include.h"
|
||||||
|
#define test_missing_nl
|
||||||
printf("done\n");
|
printf("done\n");
|
||||||
|
|
||||||
#define INC "18_include.h"
|
#define INC "18_include.h"
|
||||||
|
|
|
@ -1 +1,5 @@
|
||||||
printf("included\n");
|
printf("included\n");
|
||||||
|
/* test file with missing newline */
|
||||||
|
#ifndef INCLUDE
|
||||||
|
#define INCLUDE
|
||||||
|
#endif /* INCLUDE */
|
Loading…
Reference in a new issue