From 97794c7889732bf9aa560bec4e7b263ed815fa82 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 7 Oct 2019 10:46:45 +0200 Subject: Add ability to specify custom path list in process::path_search() --- libbutl/process.ixx | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'libbutl/process.ixx') 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:: -- cgit v1.1