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:
@ -19,3 +19,8 @@ return A + B;
|
||||
#define B1 C1+2
|
||||
#define C1 A1+3
|
||||
return A1 + B1;
|
||||
|
||||
#define i() x
|
||||
#define n() 1
|
||||
i()i()n()n()i()
|
||||
i()+i()-n()+n()-
|
||||
|
||||
@ -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 -
|
||||
|
||||
Reference in New Issue
Block a user