Fix crash due to cygwin bug in getline, bug1349.

This commit is contained in:
Wilson Snyder
2018-11-26 19:09:08 -05:00
parent 2a43410fa6
commit 15af706286
6 changed files with 34 additions and 17 deletions
+3 -4
View File
@@ -1113,10 +1113,9 @@ void V3Options::parseOptsFile(FileLine* fl, const string& filename, bool rel) {
string whole_file;
bool inCmt = false;
while (!ifp->eof()) {
string line;
getline(*ifp, line);
// Strip simple comments
string oline;
string line = V3Os::getline(*ifp);
// Strip simple comments
string oline;
// cppcheck-suppress StlMissingComparison
for (string::const_iterator pos = line.begin(); pos != line.end(); ++pos) {
if (inCmt) {