[comp.lang.c] Why strip comment

lew@gsg.UUCP (Paul Lew) (03/26/89)

In article <9881@megaron.arizona.edu> rupley@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