Re: [commit] Deprecate remaining STREQ uses

Andrew Cagney
2003-12-05T16:26:32Z

> From: David Carlton <carlton@kealia.com>
>> 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.

Is there a way, in EMACS, to pipe a section of code through a shell and
then have that code re-inserted in place?

I've played with c-macro-expand but found the experience less than
satisfying. The text ends up in a separate window leaving me with an
additional messy cut/paste step.

Andrew

PS: Steps will likely be:

- change streq[n] to sane equivalents
- re-indent rougly half of GDB
the output of cpp is messy, I'm going to need to re-indent it, which
means I'm going to need to re-indent befor the event
- this to-be-determined step