Mercurial > vim
comparison src/structs.h @ 8491:daebcbd87bd3 v7.4.1536
commit https://github.com/vim/vim/commit/de27989157f35172b25f9e01e0c147ed8f6ae3ce
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 11 22:19:44 2016 +0100
patch 7.4.1536
Problem: Cannot re-use a channel for another job.
Solution: Add the "channel" option to job_start().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 11 Mar 2016 22:30:04 +0100 |
parents | c08c6d19db4d |
children | caed4b2d305f |
comparison
equal
deleted
inserted
replaced
8490:eceb3c28e179 | 8491:daebcbd87bd3 |
---|---|
1410 #define JO_IN_TOP 0x400000 /* "in-top" */ | 1410 #define JO_IN_TOP 0x400000 /* "in-top" */ |
1411 #define JO_IN_BOT 0x800000 /* "in-bot" */ | 1411 #define JO_IN_BOT 0x800000 /* "in-bot" */ |
1412 #define JO_OUT_BUF 0x1000000 /* "out-buf" */ | 1412 #define JO_OUT_BUF 0x1000000 /* "out-buf" */ |
1413 #define JO_ERR_BUF 0x2000000 /* "err-buf" (JO_OUT_BUF << 1) */ | 1413 #define JO_ERR_BUF 0x2000000 /* "err-buf" (JO_OUT_BUF << 1) */ |
1414 #define JO_IN_BUF 0x4000000 /* "in-buf" (JO_OUT_BUF << 2) */ | 1414 #define JO_IN_BUF 0x4000000 /* "in-buf" (JO_OUT_BUF << 2) */ |
1415 #define JO_CHANNEL 0x8000000 /* "channel" */ | |
1415 #define JO_ALL 0xfffffff | 1416 #define JO_ALL 0xfffffff |
1416 | 1417 |
1417 #define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE) | 1418 #define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE) |
1418 #define JO_CB_ALL \ | 1419 #define JO_CB_ALL \ |
1419 (JO_CALLBACK + JO_OUT_CALLBACK + JO_ERR_CALLBACK + JO_CLOSE_CALLBACK) | 1420 (JO_CALLBACK + JO_OUT_CALLBACK + JO_ERR_CALLBACK + JO_CLOSE_CALLBACK) |
1441 | 1442 |
1442 job_io_T jo_io[4]; /* PART_OUT, PART_ERR, PART_IN */ | 1443 job_io_T jo_io[4]; /* PART_OUT, PART_ERR, PART_IN */ |
1443 char_u jo_io_name_buf[4][NUMBUFLEN]; | 1444 char_u jo_io_name_buf[4][NUMBUFLEN]; |
1444 char_u *jo_io_name[4]; /* not allocated! */ | 1445 char_u *jo_io_name[4]; /* not allocated! */ |
1445 int jo_io_buf[4]; | 1446 int jo_io_buf[4]; |
1447 channel_T *jo_channel; | |
1446 | 1448 |
1447 linenr_T jo_in_top; | 1449 linenr_T jo_in_top; |
1448 linenr_T jo_in_bot; | 1450 linenr_T jo_in_bot; |
1449 | 1451 |
1450 char_u *jo_callback; /* not allocated! */ | 1452 char_u *jo_callback; /* not allocated! */ |