pp: Move errors about stray backslashes
commit068d5b3d203f6c3e1536cef6397d31133d143a57
authorMichael Matz <matz@suse.de>
Wed, 3 Jun 2020 16:38:11 +0000 (3 18:38 +0200)
committerMichael Matz <matz@suse.de>
Wed, 3 Jun 2020 16:38:11 +0000 (3 18:38 +0200)
tree5eabc0316b567b91bcd2cbe2280b0e84d8b521ad
parente640ed1aeb8c525f476436e561130cd73afaad0e
pp: Move errors about stray backslashes

they were emitted too early, in particular also in macro
substitution which might turn out to not be stray in case it's
further stringified.  Check in next() instead.  Add two testcases
that an error is still emitted for obvious top-level baskslashes,
and that stringifying such a thing works.
tccpp.c
tests/tcctest.c
tests/tests2/60_errors_and_warnings.c
tests/tests2/60_errors_and_warnings.expect