This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: 17_intro/header_csetjmp.cc
- To: rittle at rsch dot comm dot mot dot com
- Subject: Re: 17_intro/header_csetjmp.cc
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Wed, 28 Mar 2001 16:17:20 -0800 (PST)
- cc: libstdc++ at gcc dot gnu dot org
> According to section 17.4.1.2 clause 5 of ISO 14882:1998 "Names which
> are defined as macros in C shall be defined as macros in the C++
> Standard Library, even if C grants license for implementation as
> functions."
then there is a bit where it specifies, exactly, what names are macros.
setjmp is one of them.
> Thus <csetjmp> [i.e. ./std/csetjmp or the file it directly includes
> (Aside, is it: ./c/bits/std_csetjmp.h or ./c_std/bits/std_csetjmp.h? ;-)]
c_std/bits/std_csetjmp
> This code should go in one of those files (I personally think it
> should go right after the ``#include <setjmp.h>''):
>
> #ifndef setjmp
> #define setjmp(env) setjmp (env)
> #endif
ok. but do all the required names. You'll see a set of 17_intro/*.cc
files that test for this stuff: do them all please
-benjamin