GCC Steering Committee decision on ISO C conversion
Andreas Schwab
schwab@suse.de
Fri Jun 28 11:31:00 GMT 2002
Richard Earnshaw <rearnsha@arm.com> writes:
|> ghazi@caip.rutgers.edu said:
|> > And I'll let you in on a little secret. I believe the HP's
|> > traditional compiler *understands* string concatenation!
|>
|> > Why do I say this? Because libiberty/regex.c uses it an no one has
|> > complained. Maybe someone can confirm this...
|>
|> Actually, regex.c has:
|>
|> # if defined (__STDC__) || defined (ALMOST_STDC) || defined
|> (HAVE_STRINGIZE)
|> # define PREFIX(name) wcs_##name
|> # define ARG_PREFIX(name) c##name
|> # else
|> # define PREFIX(name) wcs_/**/name
|> # define ARG_PREFIX(name) c/**/name
|> # endif
That's token pasting, not string concatenation. You cannot emulate the
latter in pre-standard compilers.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Gcc
mailing list