Browse Source

some ideas in the comments

master
despair 5 years ago
parent
commit
2f556ca54b
  1. 2
      src/CFGFileParser.cpp

2
src/CFGFileParser.cpp

@ -48,7 +48,7 @@ void CFGFileParser::ParseText() { @@ -48,7 +48,7 @@ void CFGFileParser::ParseText() {
}
// First pass complete, second pass: break up into single directives and <key, value> pairs
tmp = reinterpret_cast<char*>(45); // just some random junk to avoid breaking out in the first iteration
ntr::fast_string key, value;
// how about an array of keys, and of values? where key[i] and value[i] are correspondent
while (tmp != nullptr){
key = strtok_r(directives, ":", &tmp);
value = strtok_r(nullptr, "\t", &tmp);

Loading…
Cancel
Save