|
Doradiia Nuvolari
Registered User
Join date: 6 Aug 2006
Posts: 31
|
01-24-2007 13:36
I'm using SciTE-ez and the VC++ preprocessor (stripped it out so I get just what I want at under 6meg as opposed to 500meg) which is awesom.
But, I noticed that cl.exe doesn't discriminate between inline (//blah comment blah) and block (/*blah comment blah*/) style comments.
Since LSL doesn't recognize block style comments I'd really like to strip them in my precompile. But I want to leave inline comments.
Does anybody have a simple, small comment stripper that can be executed with command line arguments and will strip block style comments but leave inline comments?
|
|
Kidd Krasner
Registered User
Join date: 1 Jan 2007
Posts: 1,938
|
01-25-2007 08:17
I don't know about VC++, but the GNU C preprocessor (cpp) has a traditional mode, in which it only recognizes /* */ comments and removes them entirely. On the other hand, it might get confused if you use quotes inside a line comment.
|
|
Doradiia Nuvolari
Registered User
Join date: 6 Aug 2006
Posts: 31
|
01-25-2007 08:37
I did find a really nifty comment stripper, unfortunately it's a GUI only and doesn't seem to support command line driven usage.
It is open source, but sadly I'm not nearly confident enough in C++ to try to modify it.
I have found mention of other strippers, but very little in the way of executable binaries. I'd have thought this an easy thing to find but am learning differently. heh
|