Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 12408 invoked from network); 18 Oct 2006 16:28:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Oct 2006 16:28:17 -0000 Received: (qmail 73766 invoked by uid 500); 18 Oct 2006 16:28:17 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 73755 invoked by uid 500); 18 Oct 2006 16:28:17 -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 73744 invoked by uid 99); 18 Oct 2006 16:28:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2006 09:28:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2006 09:28:12 -0700 Received: from qxvcexch01.ad.quovadx.com (qxvcexch01.ad.quovadx.com [192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id k9IGRjth021061 for ; Wed, 18 Oct 2006 16:27:45 GMT Received: from [10.151.18.27] ([10.70.10.36]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 18 Oct 2006 10:27:51 -0600 Message-ID: <453655C6.40007@roguewave.com> Date: Wed, 18 Oct 2006 10:26:46 -0600 From: Martin Sebor User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: [PATCH] Re: testsuite process helpers References: <45363488.3050801@kyiv.vdiweb.com> In-Reply-To: <45363488.3050801@kyiv.vdiweb.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Oct 2006 16:27:52.0106 (UTC) FILETIME=[5BA260A0:01C6F2D2] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Farid Zaripov wrote: > > -----Original Message----- > > From: Martin Sebor [mailto:sebor@roguewave.com] > > Sent: Thursday, August 03, 2006 5:48 PM > > To: stdcxx-dev@incubator.apache.org > > Subject: Re: testsuite process helpers > > > [...] > > Okay, let's go with it. How about > > > > rw_enable(int(*)(int, int, const char*, const char*, ...), > > bool = true); > > > > so that we can simply call it like so: > > > > rw_enable(rw_error, false); // disable errors > > rw_enable(rw_note); // enable notes > > > > and we don't have to move diag_t into driver.h. > > The patch is attached. Excellent! Just one question/suggestion regarding naming... [...] > Index: src/opt_trace.cpp > =================================================================== > --- src/opt_trace.cpp (revision 465232) > +++ src/opt_trace.cpp (working copy) > @@ -33,7 +33,10 @@ > // masked diagnostics (those that shouldn't be issued) > int _rw_diag_mask = 1 << diag_trace; > > +// masked diagnostics (those that should be ignored) > +int _rw_ignore_mask = 0; Would _rw_diag_ignore be a better name? The variable is a bitmap of diagnostics to ignore (the one above is a bitman of those that are masked). Thanks Martin