From stdcxx-commits-return-131-apmail-incubator-stdcxx-commits-archive=incubator.apache.org@incubator.apache.org Fri Oct 14 20:35:13 2005 Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 4590 invoked from network); 14 Oct 2005 20:35:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Oct 2005 20:35:13 -0000 Received: (qmail 15588 invoked by uid 500); 14 Oct 2005 20:35:13 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 15569 invoked by uid 500); 14 Oct 2005 20:35:13 -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 15558 invoked by uid 500); 14 Oct 2005 20:35:13 -0000 Delivered-To: apmail-incubator-stdcxx-cvs@incubator.apache.org Received: (qmail 15554 invoked by uid 99); 14 Oct 2005 20:35:13 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 14 Oct 2005 13:35:13 -0700 Received: (qmail 4512 invoked by uid 65534); 14 Oct 2005 20:34:53 -0000 Message-ID: <20051014203453.4508.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r321213 - /incubator/stdcxx/trunk/include/rw/_defs.h Date: Fri, 14 Oct 2005 20:34:52 -0000 To: stdcxx-cvs@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: sebor Date: Fri Oct 14 13:34:49 2005 New Revision: 321213 URL: http://svn.apache.org/viewcvs?rev=321213&view=rev Log: 2005-10-14 Martin Sebor * _config.h: Replaced an unreliable preprocessor conditional with a simpler one using the _RWSTD_EDG_ECCP macro. Introduced a new convenience macro: _RWSTD_REVERSE_ITERATOR(). Modified: incubator/stdcxx/trunk/include/rw/_defs.h Modified: incubator/stdcxx/trunk/include/rw/_defs.h URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/include/rw/_defs.h?rev=321213&r1=321212&r2=321213&view=diff ============================================================================== --- incubator/stdcxx/trunk/include/rw/_defs.h (original) +++ incubator/stdcxx/trunk/include/rw/_defs.h Fri Oct 14 13:34:49 2005 @@ -5,7 +5,7 @@ * This is an internal header file used to implement the C++ Standard * Library. It should never be #included directly by a program. * - * $Id: //stdlib/dev/include/rw/_defs.h#139 $ + * $Id$ * *************************************************************************** * @@ -54,13 +54,13 @@ # define _RWSTD_CSETJMP # define _RWSTD_CSIGNAL -# if defined (__EDG__) && !defined (__DECCXX) - // HACK: fool the vanilla front end into actually #including - // the file (it normally doesn't and treats cstdarg specially) +# ifdef _RWSTD_EDG_ECCP + // HACK: fool the vanilla EDG front-end into actually #including + // the file (it normally doesn't and treats specially) # define _RWSTD_CSTDARG -# else +# else // if !defined (_RWSTD_EDG_ECCP) # define _RWSTD_CSTDARG -# endif +# endif // _RWSTD_EDG_ECCP # define _RWSTD_CSTDDEF # define _RWSTD_CSTDIO @@ -1070,6 +1070,9 @@ _TYPENAME _STD::iterator_traits< iterT >::iterator_category () # endif +# define _RWSTD_REVERSE_ITERATOR(iterT, ign1, ign2, ign3) \ + _STD::reverse_iterator + #else // if defined (_RWSTD_NO_CLASS_PARTIAL_SPEC) # define _RWSTD_VALUE_TYPE(iterT) __value_type ((iterT*)0) @@ -1081,6 +1084,10 @@ // may not exist or be accessible (e.g., istream_iterator<>) # define _RWSTD_ITERATOR_CATEGORY(ignore, iter) \ _STD::__iterator_category (iter) + +# define _RWSTD_REVERSE_ITERATOR(iterT, Ref, Ptr, Tag) \ + _STD::reverse_iterator #endif // _RWSTD_NO_CLASS_PARTIAL_SPEC