Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 87096 invoked from network); 11 Jul 2008 03:44:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2008 03:44:58 -0000 Received: (qmail 31105 invoked by uid 500); 11 Jul 2008 03:44:58 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 31088 invoked by uid 500); 11 Jul 2008 03:44:58 -0000 Mailing-List: contact commits-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list commits@stdcxx.apache.org Received: (qmail 31079 invoked by uid 99); 11 Jul 2008 03:44:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 20:44:58 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2008 03:44:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 89A6F2388A15; Thu, 10 Jul 2008 20:44:37 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r675826 - /stdcxx/branches/4.2.x/include/ansi/_csetjmp.h Date: Fri, 11 Jul 2008 03:44:36 -0000 To: commits@stdcxx.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080711034437.89A6F2388A15@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Thu Jul 10 20:44:35 2008 New Revision: 675826 URL: http://svn.apache.org/viewvc?rev=675826&view=rev Log: 2008-07-10 Martin Sebor STDCXX-989 * include/ansi/_csetjmp.h (jmp_buf): Hardcoded known size on Linux and Solaris. Modified: stdcxx/branches/4.2.x/include/ansi/_csetjmp.h Modified: stdcxx/branches/4.2.x/include/ansi/_csetjmp.h URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/ansi/_csetjmp.h?rev=675826&r1=675825&r2=675826&view=diff ============================================================================== --- stdcxx/branches/4.2.x/include/ansi/_csetjmp.h (original) +++ stdcxx/branches/4.2.x/include/ansi/_csetjmp.h Thu Jul 10 20:44:35 2008 @@ -23,7 +23,7 @@ * implied. See the License for the specific language governing * permissions and limitations under the License. * - * Copyright 1994-2006 Rogue Wave Software. + * Copyright 1994-2008 Rogue Wave Software, Inc. * **************************************************************************/ @@ -38,7 +38,29 @@ extern "C" { -typedef char jmp_buf [8]; +#ifdef _RWSTD_OS_LINUX + +# if 4 == _RWSTD_LONG_SIZE +// ILP32: sizeof (jmp_buf) == 156 +typedef long jmp_buf [39]; +# elif 8 == _RWSTD_LONG_SIZE +// ILP64: sizeof (jmp_buf) == 200 +typedef long jmp_buf [25]; +# endif + +#elif defined _RWSTD_OS_SUNOS + +// ILP32: sizeof (jmp_buf) == 48 +// ILP64: sizeof (jmp_buf) == 96 +typedef long jmp_buf [12]; + +#elif defined _WIN64 + // FIXME: add size +# error "jmp_buf size unknown on WIN64" +#elif defined _WIN32 + // FIXME: add size +# error "jmp_buf size unknown on WIN32" +#endif int setjmp (jmp_buf); void longjmp (jmp_buf, int);