Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 95889 invoked from network); 21 Aug 2007 19:03:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 19:03:02 -0000 Received: (qmail 9654 invoked by uid 500); 21 Aug 2007 19:02:59 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 9595 invoked by uid 500); 21 Aug 2007 19:02:59 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 9584 invoked by uid 99); 21 Aug 2007 19:02:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 12:02:59 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Farid_Zaripov@epam.com designates 217.21.63.3 as permitted sender) Received: from [217.21.63.3] (HELO EPMSA009.epam.com) (217.21.63.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 19:03:32 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: svn commit: r565959 - /incubator/stdcxx/trunk/etc/config/src/EXTERN_C_EXCEPTIONS.cpp Date: Tue, 21 Aug 2007 22:02:36 +0300 Message-ID: <7BDB2168BEAEF14C98F1901FD2DE6438D3EC42@epmsa009.minsk.epam.com> In-Reply-To: <46CB309F.30306@roguewave.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: svn commit: r565959 - /incubator/stdcxx/trunk/etc/config/src/EXTERN_C_EXCEPTIONS.cpp Thread-Index: AcfkIj08jwfeXPnZSKK4x5trmTGZfAAAy8BA References: <20070814224803.62DC81A981D@eris.apache.org> <46C25484.3040604@roguewave.com> <46C60C50.2080301@roguewave.com> <7BDB2168BEAEF14C98F1901FD2DE6438D3EC3A@epmsa009.minsk.epam.com> <46CB2C15.5010606@rowe-clan.net> <46CB309F.30306@roguewave.com> From: "Farid Zaripov" To: X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message----- > From: Martin Sebor [mailto:sebor@roguewave.com]=20 > Sent: Tuesday, August 21, 2007 9:36 PM > To: stdcxx-dev@incubator.apache.org > Subject: Re: svn commit: r565959 -=20 > /incubator/stdcxx/trunk/etc/config/src/EXTERN_C_EXCEPTIONS.cpp >=20 > William A. Rowe, Jr. wrote: > > Farid Zaripov wrote: > >>> From: Martin Sebor [mailto:sebor@roguewave.com] > >>> > >>>> I just found out that the /Ehc flag enables the nothrow=20 > default for=20 > >>>> C linkage functions. So changing the /EHsc flag to /EHs will fix=20 > >>>> this for both VC7 and 8. > >>> Do you happen to know if there's a #pragma that will let=20 > us select=20 > >>> the mode we need for just the one function? > >> There's no #pragma for that, but we can compile all cpp files with=20 > >> /Ehsc, and some set of specified files with /EHs. > >=20 > > But, there is __declspec(throw) - right? >=20 > There is __declspec(nothrow) to indicate that a function=20 > cannot throw exceptions (the default for C functions) but I=20 > don't see one to indicate the opposite, i.e., that a C=20 > function can throw. > One would think it'd be the logical extension given that all=20 > C++ functions can throw by default and no C functions can. You're right. But there is throw(...) exception specification which tells the compiler that the function can throw an exception. http://msdn2.microsoft.com/en-us/library/wfa0edys(VS.80).aspx Farid.