bump simplecpp
This commit is contained in:
parent
3798feecad
commit
590bf97247
|
@ -439,7 +439,6 @@ void simplecpp::TokenList::readfile(std::istream &istr, const std::string &filen
|
|||
if (oldLastToken != cback()) {
|
||||
oldLastToken = cback();
|
||||
const std::string lastline(lastLine());
|
||||
|
||||
if (lastline == "# file %str%") {
|
||||
loc.push(location);
|
||||
location.fileIndex = fileIndex(cback()->str().substr(1U, cback()->str().size() - 2U));
|
||||
|
@ -451,6 +450,10 @@ void simplecpp::TokenList::readfile(std::istream &istr, const std::string &filen
|
|||
loc.push(location);
|
||||
location.fileIndex = fileIndex(cback()->str().substr(1U, cback()->str().size() - 2U));
|
||||
location.line = std::atol(cback()->previous->str().c_str());
|
||||
} else if (lastline == "# %num% %str%") {
|
||||
loc.push(location);
|
||||
location.fileIndex = fileIndex(cback()->str().substr(1U, cback()->str().size() - 2U));
|
||||
location.line = std::atol(cback()->previous->str().c_str());
|
||||
}
|
||||
// #endfile
|
||||
else if (lastline == "# endfile" && !loc.empty()) {
|
||||
|
|
Loading…
Reference in New Issue