Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 28215 invoked from network); 22 Nov 2007 15:23:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Nov 2007 15:23:08 -0000 Received: (qmail 7654 invoked by uid 500); 22 Nov 2007 15:22:56 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 7640 invoked by uid 500); 22 Nov 2007 15:22:56 -0000 Mailing-List: contact stdcxx-commits-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-commits@incubator.apache.org Received: (qmail 7629 invoked by uid 99); 22 Nov 2007 15:22:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2007 07:22:56 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2007 15:23:06 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6F0421A9832; Thu, 22 Nov 2007 07:22:45 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r597428 - in /incubator/stdcxx/trunk: include/ansi/cwchar tests/strings/21.cwchar.cpp Date: Thu, 22 Nov 2007 15:22:45 -0000 To: stdcxx-commits@incubator.apache.org From: faridz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071122152245.6F0421A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: faridz Date: Thu Nov 22 07:22:44 2007 New Revision: 597428 URL: http://svn.apache.org/viewvc?rev=597428&view=rev Log: 2007-11-21 Farid Zaripov Merged r597425 from branches/4.2.x with a fix for STDCXX-637 * include/ansi/cwchar [_RWSTD_STRICT_ANSI]: #undefine getwc and putwc masking macros. * tests/strings/21.cwchar.cpp (test_macros): Issue rw_warn() instead of rw_assert() in non strict ANSI mode. (test_functions): Issue rw_warn() instead of rw_assert(). Modified: incubator/stdcxx/trunk/include/ansi/cwchar incubator/stdcxx/trunk/tests/strings/21.cwchar.cpp Modified: incubator/stdcxx/trunk/include/ansi/cwchar URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/ansi/cwchar?rev=597428&r1=597427&r2=597428&view=diff ============================================================================== --- incubator/stdcxx/trunk/include/ansi/cwchar (original) +++ incubator/stdcxx/trunk/include/ansi/cwchar Thu Nov 22 07:22:44 2007 @@ -46,6 +46,13 @@ #include _RWSTD_ANSI_C_WCHAR_H +#ifdef _RWSTD_STRICT_ANSI +// 17.4.1.2, p6 - masking macros are not allowed +# undef getwc +# undef putwc +#endif // _RWSTD_STRICT_ANSI + + #if _RWSTD_NAMESPACE_STD_OPEN == 17 #undef _RWSTD_NAMESPACE_STD_OPEN Modified: incubator/stdcxx/trunk/tests/strings/21.cwchar.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/strings/21.cwchar.cpp?rev=597428&r1=597427&r2=597428&view=diff ============================================================================== --- incubator/stdcxx/trunk/tests/strings/21.cwchar.cpp (original) +++ incubator/stdcxx/trunk/tests/strings/21.cwchar.cpp Thu Nov 22 07:22:44 2007 @@ -509,9 +509,15 @@ } for (unsigned i = 0; masking_macros [i]; ++i) { +#ifdef _RWSTD_STRICT_ANSI rw_assert ('\0' == masking_macros [i][0], 0, __LINE__, "masking macro %s unexpectedly defined", masking_macros [i]); +#else + rw_warn ('\0' == masking_macros [i][0], 0, __LINE__, + "masking macro %s unexpectedly defined", + masking_macros [i]); +#endif } } @@ -855,13 +861,13 @@ std_name, #fun, overload < 0, 0 == overload); \ const char* const return_type_name = \ get_type_name ((T)0, std::fun args); \ - rw_assert (0 == ncalls, 0, __LINE__, \ - "%s::%s(" \ - "%{?}%{:}/* %{?}non-%{;}const overload */%{;}) " \ - "not declared (_RWSTD_NO_%s = %d, " \ - "_RWSTD_NO_%s_IN_LIBC = %d)", \ - std_name, #fun, overload < 0, 0 == overload, \ - #macro, EVAL (macro), #macro, EVAL_IN_LIBC (macro)); \ + rw_warn (0 == ncalls, 0, __LINE__, \ + "%s::%s(" \ + "%{?}%{:}/* %{?}non-%{;}const overload */%{;}) " \ + "not declared (_RWSTD_NO_%s = %d, " \ + "_RWSTD_NO_%s_IN_LIBC = %d)", \ + std_name, #fun, overload < 0, 0 == overload, \ + #macro, EVAL (macro), #macro, EVAL_IN_LIBC (macro)); \ if (0 == ncalls) \ rw_assert (0 == return_type_name, 0, __LINE__, "%s::%s(" \ "%{?}%{:}/* %{?}non-%{;}const overload */%{;}) " \