diff options
-rw-r--r-- | src/nvim/eval.c | 1 | ||||
-rw-r--r-- | src/nvim/os/channel.c | 1 | ||||
-rw-r--r-- | src/nvim/os/job.c | 11 | ||||
-rw-r--r-- | src/nvim/os/shell.c | 1 |
4 files changed, 3 insertions, 11 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index fffeedfd53..4be7aed3a3 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -10498,7 +10498,6 @@ static void f_job_start(typval_T *argvars, typval_T *rettv) on_job_stdout, on_job_stderr, on_job_exit, - true, 0, &rettv->vval.v_number); diff --git a/src/nvim/os/channel.c b/src/nvim/os/channel.c index d5f29aa667..1a2efca513 100644 --- a/src/nvim/os/channel.c +++ b/src/nvim/os/channel.c @@ -96,7 +96,6 @@ uint64_t channel_from_job(char **argv) job_out, job_err, NULL, - true, 0, &status); diff --git a/src/nvim/os/job.c b/src/nvim/os/job.c index 01a529d533..9deca9de74 100644 --- a/src/nvim/os/job.c +++ b/src/nvim/os/job.c @@ -39,7 +39,6 @@ struct job { int pending_closes; // If the job was already stopped bool stopped; - bool defer; // Data associated with the job void *data; // Callbacks @@ -130,19 +129,16 @@ void job_teardown(void) /// on stdout /// @param stderr_cb Callback that will be invoked when data is available /// on stderr -/// @param exit_cb Callback that will be invoked when the job exits -/// @param defer If the job callbacks invocation should be deferred to vim -/// main loop +/// @param job_exit_cb Callback that will be invoked when the job exits /// @param maxmem Maximum amount of memory used by the job WStream -/// @param[out] The job id if the job started successfully, 0 if the job table -/// is full, -1 if the program could not be executed. +/// @param[out] status The job id if the job started successfully, 0 if the job +/// table is full, -1 if the program could not be executed. /// @return The job pointer if the job started successfully, NULL otherwise Job *job_start(char **argv, void *data, rstream_cb stdout_cb, rstream_cb stderr_cb, job_exit_cb job_exit_cb, - bool defer, size_t maxmem, int *status) { @@ -187,7 +183,6 @@ Job *job_start(char **argv, job->proc_stdin.data = NULL; job->proc_stdout.data = NULL; job->proc_stderr.data = NULL; - job->defer = defer; // Initialize the job std{in,out,err} uv_pipe_init(uv_default_loop(), &job->proc_stdin, 0); diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c index 02dc396d78..398d94b606 100644 --- a/src/nvim/os/shell.c +++ b/src/nvim/os/shell.c @@ -280,7 +280,6 @@ int os_system(const char *cmd, system_data_cb, system_data_cb, NULL, - false, 0, &i); |