[commit] Deprecate remaining STREQ uses

David Carlton carlton@kealia.com
Mon Nov 24 20:06:00 GMT 2003


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



More information about the Gdb-patches mailing list