From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25464 invoked by alias); 24 Nov 2003 20:06:25 -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 25457 invoked from network); 24 Nov 2003 20:06:24 -0000 Received: from unknown (HELO hawaii.kealia.com) (209.3.10.89) by sources.redhat.com with SMTP; 24 Nov 2003 20:06:24 -0000 Received: by hawaii.kealia.com (Postfix, from userid 2049) id 285B8C6B9; Mon, 24 Nov 2003 12:06:24 -0800 (PST) To: Eli Zaretskii Cc: Andrew Cagney , 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: Mon, 24 Nov 2003 20:06:00 -0000 In-Reply-To: <2914-Mon24Nov2003212333+0200-eliz@elta.co.il> (Eli Zaretskii's message of "Mon, 24 Nov 2003 21:23:34 +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/msg00539.txt.bz2 On Mon, 24 Nov 2003 21:23:34 +0200, "Eli Zaretskii" said: > I don't think simply replacing the macros with their expansion could > introduce bugs. If you don't trust your eyes and hands, perhaps > Emacs's c-macro-expand command (or some other similar automated > tool) could help. Yeah, I was thinking that an automated tool would work well. I was thinking that just using keyboard macros might do the trick: get to the start of STREQ, then delete that word, insert "(strcmp", go forward a regexp, and insert "==0)" should be safe, no? But I didn't know about c-macro-expand; looks useful. David Carlton carlton@kealia.com