From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29285 invoked by alias); 25 Nov 2003 17:59:39 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29267 invoked from network); 25 Nov 2003 17:59:38 -0000 Received: from unknown (HELO hawaii.kealia.com) (209.3.10.89) by sources.redhat.com with SMTP; 25 Nov 2003 17:59:38 -0000 Received: by hawaii.kealia.com (Postfix, from userid 2049) id 7B73CC6B6; Tue, 25 Nov 2003 09:59:38 -0800 (PST) To: Andrew Cagney Cc: Eli Zaretskii , gdb-patches@sources.redhat.com Subject: Re: [commit] Deprecate remaining STREQ uses References: <3FC119EB.1060102@gnu.org> <3FC234C0.1000500@gnu.org> <2914-Mon24Nov2003212333+0200-eliz@elta.co.il> <3FC39747.2090007@gnu.org> <20031125175721.GA19157@nevyn.them.org> From: David Carlton Date: Tue, 25 Nov 2003 17:59:00 -0000 In-Reply-To: <20031125175721.GA19157@nevyn.them.org> (Daniel Jacobowitz's message of "Tue, 25 Nov 2003 12:57:22 -0500") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-11/txt/msg00571.txt.bz2 On Tue, 25 Nov 2003 12:57:22 -0500, Daniel Jacobowitz said: > On Tue, Nov 25, 2003 at 12:54:15PM -0500, Andrew Cagney wrote: >> So, should the transformation be the strictly mechanical inline expansion: >> >> STREQ(a,b) => (*(a) == *(b) ? !strcmp ((a), (b)) : 0) >> >> or also include a simplification leading to: >> >> STREQ(a,b) => (strcmp ((a), (b)) == 0) > If you want to do this mechanically, you can just change the > definition of STREQ first, of course. Good point! David Carlton carlton@kealia.com