tccpp.c: correct # stringification
commita6e6a954f5fb70c12e2f40e99281219c720de71b
authorPhilip <pipcet@gmail.com>
Sat, 2 May 2015 13:19:14 +0000 (2 13:19 +0000)
committerPhilip <pipcet@gmail.com>
Sat, 2 May 2015 13:19:14 +0000 (2 13:19 +0000)
tree0d34ed436eea110f2e4f97f610e62343a72ed76d
parent0877ba7cbf275fdcd45e3c33768d258fc75feb5b
tccpp.c: correct # stringification

Fix handling of escape characters, spaces, and line feeds in macros or
macro arguments that might yet be subject to # stringification.

Should this be an -f option? I think memory usage increases only very
slightly (in particular, while line feeds, stray \s, and spaces are
preserved, comments are not), so it's probably not worth it to make it
one.

Note that macro_subst now checks for stray \s which are still left in
the input stream after macro substitution, if desired.

This patch depends on the previous patch, so if you revert that, please
revert this patch, too.

See http://lists.nongnu.org/archive/html/tinycc-devel/2015-05/msg00002.html
tccpp.c