This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC Steering Committee decision on ISO C conversion


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]