[commit] Deprecate remaining STREQ uses
Tue Nov 25 16:59:00 GMT 2003
On 25 Nov 2003 08:55:33 +0200, Eli Zaretskii <email@example.com> said:
>> From: David Carlton <firstname.lastname@example.org>
>> 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
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...
More information about the Gdb-patches