Article View: gnu.gcc.bug
Article #2897Re: gcc-cpp: nested expansion / stringification problem
From: Ken Raeburn
Date: Sun, 25 Feb 1990 12:16
Date: Sun, 25 Feb 1990 12:16
49 lines
1752 bytes
1752 bytes
I didn't notice before sending in my last report, but the assert.h
that was being used was from a previous gcc release. (The directory I
was in had only my gcc object files, not sources and header files.)
Here's the header file I was really using:
/* Allow this file to be included multiple times
with different settings of NDEBUG. */
#undef assert
#undef __assert
#ifdef NDEBUG
#define assert(ignore)
#else
#define assert(expression) \
((expression) ? 0 : __assert (#expression, __FILE__, __LINE__))
void __eprintf (); /* Defined in gnulib */
#ifdef __GNUC__
volatile void abort();
#else
void abort();
#endif
#ifdef __STDC__
#define __assert(expression, file, line) \
(__eprintf ("Failed assertion " expression \
" at line %d of `" file "'.\n", line), \
abort ())
#else /* no __STDC__; i.e. -traditional. */
#define __assert(expression, file, line) \
(__eprintf ("Failed assertion at line %d of `%s'.\n", line, file), \
abort ())
#endif /* no __STDC__; i.e. -traditional. */
#endif
This doesn't change the fact that the expansion seems incorrect.
Also, some line breaks appear to have been added by my local mailer;
the big ugly expression really was all one line.
-- Ken
Technical Details
Message-ID:
<9002251216.AA25889@prometheus.MIT.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!iuvax!cica!tut.cis.ohio-state.edu!ATHENA.MIT.EDU!RaeburnShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!iuvax!cica!tut.cis.ohio-state.edu!ATHENA.MIT.EDU!Raeburn From: Raeburn@ATHENA.MIT.EDU (Ken Raeburn) Newsgroups: gnu.gcc.bug Subject: Re: gcc-cpp: nested expansion / stringification problem Message-ID: <9002251216.AA25889@prometheus.MIT.EDU> Date: 25 Feb 90 12:16:41 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 49