Produce better error message on malformed while loop
commitb214fb6ed3897bf364d512b59f7f43fce6540de9
authorEric Raible <raible@gmail.com>
Wed, 4 Oct 2023 05:11:59 +0000 (3 22:11 -0700)
committerEric Raible <raible@gmail.com>
Wed, 4 Oct 2023 05:13:56 +0000 (3 22:13 -0700)
tree0845e4d32ba29f85168928321fa8de484be0b4af
parent3d128041c3de5132b4d13175e9716de2518fa965
Produce better error message on malformed while loop

echo "void bugged() { do {} }" | tcc -run -
now produces the sensible:  -:1: error: 'while' expected (got "}")

I believe (but am far from sure) that the additional use of &tokc is ok.
tccpp.c