>>>>> "Carl" == Carl Ollivier-Gooch <[EMAIL PROTECTED]> writes:

>>  It seems to me then the following simpler sed rule works equally
>> well: -e 's/\(\(FD_[^ ]*\) \*fdui.*\)sizeof(\*fdui)/\1sizeof(\2)/'

Carl> Hey, if it works, that's great.  I'm absolutely not an expert on
Carl> sed, to the extent that I can barely read the rule you
Carl> propose. (If I didn't know what it was supposed to do, I'd never
Carl> be able to tell...)  By all means, use the simpler version.

Ha! I wrote this rule because I could not understand yours :)
Basically, it transforms:
 FD_foo *fdui bar_bar_bar_bar sizeof(*fdui);
to
 FD_foo *fdui bar_bar_bar_bar sizeof(FD_foo);

This show that regular expressions are really write-only.

JMarc

Reply via email to