1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-12 19:22:37 +00:00

Revert "fix include paths parsing under Windows (#541)" (#557)

This reverts commit 4d09d04a42.
This commit is contained in:
EmelyanenkoK 2022-12-15 17:12:29 +03:00 committed by GitHub
parent 4d09d04a42
commit b6d44bb02a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 20 deletions

View file

@ -810,22 +810,14 @@ void usage(const char* progname) {
std::exit(2);
}
constexpr char include_path_separator =
#if _WIN32
';'
#else
':'
#endif //
;
void parse_include_path_set(std::string include_path_set, std::vector<std::string>& res) {
td::Parser parser(include_path_set);
while (!parser.empty()) {
auto path = parser.read_till_nofail(include_path_separator);
auto path = parser.read_till_nofail(':');
if (!path.empty()) {
res.push_back(path.str());
}
parser.skip_nofail(include_path_separator);
parser.skip_nofail(':');
}
}

View file

@ -72,22 +72,14 @@ void usage(const char* progname) {
std::exit(2);
}
constexpr char include_path_separator =
#if _WIN32
';'
#else
':'
#endif //
;
void parse_include_path_set(std::string include_path_set, std::vector<std::string>& res) {
td::Parser parser(include_path_set);
while (!parser.empty()) {
auto path = parser.read_till_nofail(include_path_separator);
auto path = parser.read_till_nofail(':');
if (!path.empty()) {
res.push_back(path.str());
}
parser.skip_nofail(include_path_separator);
parser.skip_nofail(':');
}
}