Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!decvax!gsg!lew From: lew@gsg.UUCP (Paul Lew) Newsgroups: comp.lang.c Subject: Re: Why strip comment (was: Want a way to strip comments ...) Message-ID: <296@gsg.UUCP> Date: 26 Mar 89 04:19:10 GMT Reply-To: lew@gsg.UUCP (Paul Lew) Organization: General Systems Group, Salem, NH Lines: 15 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