Insert spaces between certain tokens when tcc is invoked with -E.

Insert a space when it is required to prevent mistokenisation of
the output, and also in a few cases where it is not strictly
required, imitating GCC's behaviour.
This commit is contained in:
Edmund Grimley Evans
2016-05-04 21:37:11 +01:00
parent 75243f744c
commit f5f82abc99
4 changed files with 78 additions and 3 deletions

View File

@ -1,6 +1,26 @@
Z(1)
Z(Z(1))
Z(Z(Z(Z(Z(1)))))
return A + B;
return A+1 + B+1;
return A1+3 +2 +1 + B1+1 +3 +2;
x x 1 1 x
x+x-1 +1 -