0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 7.4.1356

Problem:    Job and channel options parsing is scattered.
Solution:   Move all option value parsing to get_job_options();
This commit is contained in:
Bram Moolenaar
2016-02-19 22:33:35 +01:00
parent ed5a78e11c
commit 40ea1da14b
6 changed files with 167 additions and 123 deletions

View File

@@ -1372,13 +1372,23 @@ struct channel_S {
int ch_refcount; /* reference count */
};
#define JO_MODE 1
#define JO_CALLBACK 2
#define JO_WAITTIME 4
#define JO_TIMEOUT 8
#define JO_ALL 0xffffff
/*
* Options for job and channel commands.
*/
typedef struct
{
ch_mode_T jo_mode; /* "mode" */
char_u *jo_callback; /* "callback", not allocated! */
int jo_set; /* JO_ bits for values that were set */
ch_mode_T jo_mode;
char_u *jo_callback; /* not allocated! */
int jo_waittime;
int jo_timeout;
} jobopt_T;