This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC Steering Committee decision on ISO C conversion
- From: Andreas Schwab <schwab at suse dot de>
- To: Richard dot Earnshaw at arm dot com
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, obrien at NUXI dot com,aldyh at redhat dot com, gcc at gcc dot gnu dot org, jsm28 at cam dot ac dot uk, shebs at apple dot com
- Date: Fri, 28 Jun 2002 18:44:28 +0200
- Subject: Re: GCC Steering Committee decision on ISO C conversion
- References: <200206281635.RAA18883@cam-mail2.cambridge.arm.com>
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."