diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-11-30 13:45:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-11-30 13:45:12 +0200 |
commit | 92b07419515b7c9a18608684ceef97287b97bcf1 (patch) | |
tree | 96975c5e4df1cbb61d50f6b90b31b77e0fa52bcc | |
parent | 5bd2f3db5040d0b806fb1d1470925e48636b451e (diff) |
Add more default argument values to run_start()
-rw-r--r-- | libbuild2/utility.hxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx index 369e58b..44819b5 100644 --- a/libbuild2/utility.hxx +++ b/libbuild2/utility.hxx @@ -288,8 +288,8 @@ namespace build2 run_start (uint16_t verbosity, const process_env&, // Implicit-constructible from process_path. const char* args[], - int in, - int out, + int in = 0, + int out = 1, bool error = true, const dir_path& cwd = dir_path (), const location& = location ()); @@ -298,8 +298,8 @@ namespace build2 run_start (uint16_t verbosity, const process_env& pe, cstrings& args, - int in, - int out, + int in = 0, + int out = 1, bool error = true, const dir_path& cwd = dir_path (), const location& l = location ()) @@ -310,8 +310,8 @@ namespace build2 inline process run_start (const process_env& pe, const char* args[], - int in, - int out, + int in = 0, + int out = 1, bool error = true, const dir_path& cwd = dir_path (), const location& l = location ()) @@ -322,8 +322,8 @@ namespace build2 inline process run_start (const process_env& pe, cstrings& args, - int in, - int out, + int in = 0, + int out = 1, bool error = true, const dir_path& cwd = dir_path (), const location& l = location ()) @@ -335,7 +335,7 @@ namespace build2 run (const process_env& pe, // Implicit-constructible from process_path. const char* args[]) { - process pr (run_start (pe, args, 0, 1, true)); + process pr (run_start (pe, args)); run_finish (args, pr); } @@ -371,8 +371,8 @@ namespace build2 inline process run_start (uint16_t verbosity, const char* args[], - int in, - int out, + int in = 0, + int out = 1, bool error = true, const dir_path& cwd = dir_path (), const char* const* env = nullptr, @@ -388,8 +388,8 @@ namespace build2 inline process run_start (uint16_t verbosity, cstrings& args, - int in, - int out, + int in = 0, + int out = 1, bool error = true, const dir_path& cwd = dir_path (), const char* const* env = nullptr, |