From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31488 invoked by alias); 25 Nov 2003 18:02:18 -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 31475 invoked from network); 25 Nov 2003 18:02:17 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 25 Nov 2003 18:02:17 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id hAPI2GH23785 for ; Tue, 25 Nov 2003 13:02:16 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id hAPI2Gw31988; Tue, 25 Nov 2003 13:02:16 -0500 Received: from localhost.localdomain (vpn50-29.rdu.redhat.com [172.16.50.29]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id hAPI2FKL005080; Tue, 25 Nov 2003 13:02:15 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id hAPI2Al14548; Tue, 25 Nov 2003 11:02:10 -0700 Date: Tue, 25 Nov 2003 18:02:00 -0000 From: Kevin Buettner Message-Id: <1031125180210.ZM14547@localhost.localdomain> In-Reply-To: Andrew Cagney "Re: [commit] Deprecate remaining STREQ uses" (Nov 25, 12:54pm) References: <3FC119EB.1060102@gnu.org> <3FC234C0.1000500@gnu.org> <2914-Mon24Nov2003212333+0200-eliz@elta.co.il> <3FC39747.2090007@gnu.org> To: Andrew Cagney Subject: Re: [commit] Deprecate remaining STREQ uses Cc: gdb-patches@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-11/txt/msg00572.txt.bz2 On Nov 25, 12:54pm, 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) The latter. If you still want to do the former, you might as well keep the macro. Kevin