From: Ian Miller Newsgroups: comp.os.msdos.djgpp Subject: Re: Utility to strip comments from C/C++ source? Date: 20 Feb 1998 10:45:39 +0000 Organization: Defence Evaluation & Research Agency Lines: 26 Message-ID: <87lnv6wo4s.fsf@hasn.dera.gov.uk> References: <34ED0154 DOT 83D5B0C9 AT bethany DOT edu> NNTP-Posting-Host: 146.80.115.106 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk pneyz writes: > Is there a DJGPP utility to strip comments from files? I started coding > one then realized someone's probably already done it and it would save > me the trouble. > > If there isn't one, I'd like to submit the one I write (if I have to) to > the next release. Does anyone think this would be a (semi-)useful > utility? The C preprocessor already does this. Of course, it does a bunch of other things too (expands macros and so on) but it's probably worth looking at. I suspect you can control what it does with command line switches if you run it by hand. Out of interest, why would you want to do this? Does anyone know of a utility to add comments to source files. Now that *would* be useful. :) Ian -- Ian Miller, Dorset, UK DJGPP 2.01, Win95 DOS box (LFN undefined, FNCASE=y) The views expressed above are entirely those of the writer and do not represent the views, policy, or understanding of any other person or official body.