Parent Directory | Revision Log | Patch
revision 1459 by torben, Wed May 11 11:11:42 2011 UTC | revision 1460 by torben, Wed May 11 19:19:07 2011 UTC | |
---|---|---|
# | Line 18 const int BUFSIZE = 1024*1024; | Line 18 const int BUFSIZE = 1024*1024; |
18 | string remove_comments(string in) { | string remove_comments(string in) { |
19 | bool isComment = false; | bool isComment = false; |
20 | ostringstream out; | ostringstream out; |
21 | for (int i=0; i<in.length() -1; i++) { | for (unsigned int i=0; i<in.length() -1; i++) { |
22 | if (in.at(i) == '/' && in.at(i+1) == '*') | if (in.at(i) == '/' && in.at(i+1) == '*') |
23 | isComment = true; | isComment = true; |
24 |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |