tccpp: integrate __has_include() more nicely
commit85c32ddd0bf465b34d8087002f409dda8ca58c00
authorgrischka <grischka>
Thu, 18 Aug 2022 08:23:13 +0000 (18 10:23 +0200)
committergrischka <grischka>
Thu, 18 Aug 2022 08:23:13 +0000 (18 10:23 +0200)
tree5197150441e804f850dd92a03f7470999029d592
parent0f72db09ab4bc9fb02b2a8981b1ae267dd4f649c
tccpp: integrate __has_include() more nicely

- make only one function from previously four pieces
- use parse_pp_string() for the normal cases "..." and <...>
- use the sanity check for computed include as end-condition too.
- use 's1' instead of 'tcc_state' when possible

117 insertions(+), 165 deletions(-), less 48 lines
tccpp.c