This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
cpp behaviour change
- To: gcc-bugs at gcc dot gnu dot org
- Subject: cpp behaviour change
- From: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- Date: 22 Jun 2000 01:41:56 +0200
Hi,
I found out that this:
#define FOO(V) printf("baz " ## #V);
FOO(bar);
will be converted by cpp 2.96 to
printf("baz "#bar);;
while 2.95.2 produced
printf("baz ""bar"); ;
Can anybody tell me which behaviour is correct? I understood that the
## would only be regarded in a "second pass", and then eat up all
whitespace to the left and right, so 2.95.2 seems to be correct.
Falk