Why strip comment (was: Want a way to strip comments ...)
Paul Lew
lew at gsg.UUCP
Sun Mar 26 14:19:10 AEST 1989
In article <9881 at megaron.arizona.edu> rupley at arizona.edu (John Rupley) writes:
>
>Why strip comments? (1) the original poster had a broken compiler that choked
>on comments; (2) the start of a cheap way to get a list or inverted index of
>identifiers (cpp does too much).
One more use: I use it to find possible absolute pathnames in C files (one
thing I do to comp.sources posting).
$ rmcmt *.[ch] | grep /
This is easy and very effective. With comments this becomes difficult.
--
Paul Lew {oliveb,harvard,decvax}!gsg!lew (UUCP)
General Systems Group, 5 Manor Parkway, Salem, NH 03079 (603) 893-1000
More information about the Comp.lang.c
mailing list