Hello Ziyao !
Although gcc compiles a file containing your example with warnings, I'm
not sure it's worth try to do the same in TiinyCC the preprocessor
probably uses TOKENS from the lexer to decide to skip till the end of
the initial "#if 0" and '"' is not a valid token the error probably come
from the lexer that found a non terminated string.
Cheers !
On 11/7/22 15:57, Ziyao wrote:
Hi list,
When I was compiling Bash with TinyCC,an error occurred.
The simpliest example is like below:
#if 0
"
#if 0
"
#endif
#endif
Code within #if 0 ... end block should be ignored.But this code breaks
TinyCC.TinyCC seems to analyse the string inside the useless code block.
As many use #if 0 blocks as comments,maybe this is valuable to fix.
Tons of thanks for your help
Ziyao
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel