Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBC2DBF changes #1184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,6 @@ void CDBFConverter::GenerateMessageList(fstream& fileInput)
for (;;)
{
pcLine = acLine;
pcLine += strlen(pcLine); // go to last position
pcLine --;

if (*pcLine == '\r')
{
Expand Down Expand Up @@ -626,7 +624,13 @@ void CDBFConverter::GenerateMessageList(fstream& fileInput)
_flag_BS_ = 2; // this means just NS_ and BS_ are done.
}
}
if(strstr(pcToken, "NS_") != NULL)

// skip namespace value
if(*pcToken == '\t')
{
continue;
}
else if(strcmp(pcToken, "NS_") == 0)
{
if (_flag_BS_ == 0 )
{
Expand Down Expand Up @@ -877,7 +881,7 @@ void CDBFConverter::GenerateMessageList(fstream& fileInput)
//comments
else if(strcmp(pcToken, "CM_") == 0)
{
string comment = pcTok; // for network node - venkat
string comment;
pcLine = pcLine + strlen(pcToken) + 1;
pcToken = strtok_s(pcLine, " ", &pcTok);
CComment cm;
Expand Down