diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-07 10:46:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-07 10:46:45 +0200 |
commit | 97794c7889732bf9aa560bec4e7b263ed815fa82 (patch) | |
tree | 101bbdff835998c51041cde89a93be1847969e06 /libbutl/process.ixx | |
parent | e93524f3d5204ac9ecc51ecb0546257e10396eb5 (diff) |
Add ability to specify custom path list in process::path_search()
Diffstat (limited to 'libbutl/process.ixx')
-rw-r--r-- | libbutl/process.ixx | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/libbutl/process.ixx b/libbutl/process.ixx index accc57b..c7459c8 100644 --- a/libbutl/process.ixx +++ b/libbutl/process.ixx @@ -106,9 +106,9 @@ namespace butl #endif inline process_path process:: - path_search (const char*& a0, const dir_path& fb, bool po) + path_search (const char*& a0, const dir_path& fb, bool po, const char* ps) { - process_path r (path_search (a0, true, fb, po)); + process_path r (path_search (a0, true, fb, po, ps)); if (!r.recall.empty ()) { @@ -120,27 +120,31 @@ namespace butl } inline process_path process:: - path_search (const std::string& f, bool i, const dir_path& fb, bool po) + path_search (const std::string& f, bool i, + const dir_path& fb, bool po, const char* ps) { - return path_search (f.c_str (), i, fb, po); + return path_search (f.c_str (), i, fb, po, ps); } inline process_path process:: - path_search (const path& f, bool i, const dir_path& fb, bool po) + path_search (const path& f, bool i, + const dir_path& fb, bool po, const char* ps) { - return path_search (f.string ().c_str (), i, fb, po); + return path_search (f.string ().c_str (), i, fb, po, ps); } inline process_path process:: - try_path_search (const std::string& f, bool i, const dir_path& fb, bool po) + try_path_search (const std::string& f, bool i, + const dir_path& fb, bool po, const char* ps) { - return try_path_search (f.c_str (), i, fb, po); + return try_path_search (f.c_str (), i, fb, po, ps); } inline process_path process:: - try_path_search (const path& f, bool i, const dir_path& fb, bool po) + try_path_search (const path& f, bool i, + const dir_path& fb, bool po, const char* ps) { - return try_path_search (f.string ().c_str (), i, fb, po); + return try_path_search (f.string ().c_str (), i, fb, po, ps); } inline process:: |