Mail Archives: djgpp/1998/02/20/10:31:35
pneyz <pneyz AT bethany DOT edu> 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.
- Raw text -