From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19373 invoked by alias); 25 Nov 2003 16:59:38 -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 19366 invoked from network); 25 Nov 2003 16:59:37 -0000 Received: from unknown (HELO hawaii.kealia.com) (209.3.10.89) by sources.redhat.com with SMTP; 25 Nov 2003 16:59:37 -0000 Received: by hawaii.kealia.com (Postfix, from userid 2049) id EE235C6B2; Tue, 25 Nov 2003 08:59:36 -0800 (PST) To: Eli Zaretskii Cc: cagney@gnu.org, 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> From: David Carlton Date: Tue, 25 Nov 2003 16:59:00 -0000 In-Reply-To: (Eli Zaretskii's message of "25 Nov 2003 08:55:33 +0200") 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/msg00564.txt.bz2 On 25 Nov 2003 08:55:33 +0200, Eli Zaretskii said: >> From: David Carlton >> Date: Mon, 24 Nov 2003 12:06:24 -0800 >> >> I was thinking that just using keyboard macros might do the trick: > For such a simple job, it probably would. But c-macro-expand is more > trustworthy, IMHO: it actually runs cpp and has provisions for you to > specify the same compiler switches as are used during an actual > compilation, so you don't run a risk of missing some obscure #define > somewhere. Actually, in the case at hand, they would give different results, it turns out! The definition of STREQ isn't simply strcmp()==0 - there's an optimization (or "optimization", perhaps) there as well. >> go forward a regexp > You probably meant to go forward a sexp. Yup, that's what I meant to say, thanks. Though what my fingers would do is M-C-n, which seems to be bound to forward-list... David Carlton carlton@kealia.com