This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [commit] Deprecate remaining STREQ uses
On Mon, 24 Nov 2003 21:23:34 +0200, "Eli Zaretskii" <eliz@elta.co.il> 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