comparison src/structs.h @ 8174:f2286ff0c102 v7.4.1380

commit https://github.com/vim/vim/commit/ee1cffc07a42441924c5353af7fd7ab6e97e5aae Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 21 19:14:41 2016 +0100 patch 7.4.1380 Problem: The job exit callback is not implemented. Solution: Add the "exit-cb" option.
author Christian Brabandt <cb@256bit.org>
date Sun, 21 Feb 2016 19:15:04 +0100
parents a0ffb1f3dedc
children 477c1d855698
comparison
equal deleted inserted replaced
8173:8f9a62af9212 8174:f2286ff0c102
1263 PROCESS_INFORMATION jv_proc_info; 1263 PROCESS_INFORMATION jv_proc_info;
1264 HANDLE jv_job_object; 1264 HANDLE jv_job_object;
1265 #endif 1265 #endif
1266 jobstatus_T jv_status; 1266 jobstatus_T jv_status;
1267 char_u *jv_stoponexit; /* allocated */ 1267 char_u *jv_stoponexit; /* allocated */
1268 char_u *jv_exit_cb; /* allocated */
1268 1269
1269 int jv_refcount; /* reference count */ 1270 int jv_refcount; /* reference count */
1270 channel_T *jv_channel; /* channel for I/O, reference counted */ 1271 channel_T *jv_channel; /* channel for I/O, reference counted */
1271 }; 1272 };
1272 1273
1388 #define JO_OUT_TIMEOUT 0x0200 /* stdout timeouts */ 1389 #define JO_OUT_TIMEOUT 0x0200 /* stdout timeouts */
1389 #define JO_ERR_TIMEOUT 0x0400 /* stderr timeouts */ 1390 #define JO_ERR_TIMEOUT 0x0400 /* stderr timeouts */
1390 #define JO_PART 0x0800 /* "part" */ 1391 #define JO_PART 0x0800 /* "part" */
1391 #define JO_ID 0x1000 /* "id" */ 1392 #define JO_ID 0x1000 /* "id" */
1392 #define JO_STOPONEXIT 0x2000 /* "stoponexit" */ 1393 #define JO_STOPONEXIT 0x2000 /* "stoponexit" */
1394 #define JO_EXIT_CB 0x4000 /* "exit-cb" */
1393 #define JO_ALL 0xffffff 1395 #define JO_ALL 0xffffff
1394 1396
1395 #define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE) 1397 #define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE)
1396 #define JO_CB_ALL (JO_CALLBACK + JO_OUT_CALLBACK + JO_ERR_CALLBACK) 1398 #define JO_CB_ALL (JO_CALLBACK + JO_OUT_CALLBACK + JO_ERR_CALLBACK)
1397 #define JO_TIMEOUT_ALL (JO_TIMEOUT + JO_OUT_TIMEOUT + JO_ERR_TIMEOUT) 1399 #define JO_TIMEOUT_ALL (JO_TIMEOUT + JO_OUT_TIMEOUT + JO_ERR_TIMEOUT)
1416 int jo_err_timeout; 1418 int jo_err_timeout;
1417 int jo_part; 1419 int jo_part;
1418 int jo_id; 1420 int jo_id;
1419 char_u jo_soe_buf[NUMBUFLEN]; 1421 char_u jo_soe_buf[NUMBUFLEN];
1420 char_u *jo_stoponexit; 1422 char_u *jo_stoponexit;
1423 char_u jo_ecb_buf[NUMBUFLEN];
1424 char_u *jo_exit_cb;
1421 } jobopt_T; 1425 } jobopt_T;
1422 1426
1423 1427
1424 /* structure used for explicit stack while garbage collecting hash tables */ 1428 /* structure used for explicit stack while garbage collecting hash tables */
1425 typedef struct ht_stack_S 1429 typedef struct ht_stack_S