Commit bb0562eb by maarten

accept empty lines in PDB

git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@379 a1961a4f-ab94-4bcc-80e8-33b5a54de466
parent ec4ea697
......@@ -977,10 +977,12 @@ void PDBFileParser::PreParseInput(istream& is)
for (;;)
{
string type;
if (lookahead.empty())
break;
string type = lookahead.substr(0, 6);
cerr << "Line number " << lineNr << " is empty!" << endl;
type = lookahead.substr(0, 6);
string value;
if (lookahead.length() > 6)
value = ba::trim_right_copy(lookahead.substr(6));
......@@ -989,6 +991,9 @@ void PDBFileParser::PreParseInput(istream& is)
uint32 curLineNr = lineNr;
++lineNr;
if (type.empty())
continue;
if (kSupportedRecords.count(type) == 0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment