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


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

Re: 17_intro/header_csetjmp.cc


> 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


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