Mercurial > vim
comparison src/structs.h @ 8059:19304db153bc v7.4.1324
commit https://github.com/vim/vim/commit/d807036d10615b960c814ef3890ecad335b57f56
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 15 21:56:54 2016 +0100
patch 7.4.1324
Problem: Channels with pipes don't work on MS-Windows.
Solution: Add pipe I/O support. (Yasuhiro Matsumoto)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 15 Feb 2016 22:00:04 +0100 |
parents | 15253130abd8 |
children | 3ea56a74077f |
comparison
equal
deleted
inserted
replaced
8058:a78f2d2ed4b9 | 8059:19304db153bc |
---|---|
1304 /* Ordering matters, it is used in for loops: IN is last, only SOCK/OUT/ERR | 1304 /* Ordering matters, it is used in for loops: IN is last, only SOCK/OUT/ERR |
1305 * are polled. */ | 1305 * are polled. */ |
1306 #define CHAN_SOCK 0 | 1306 #define CHAN_SOCK 0 |
1307 #define CH_SOCK ch_pfd[CHAN_SOCK].ch_fd | 1307 #define CH_SOCK ch_pfd[CHAN_SOCK].ch_fd |
1308 | 1308 |
1309 #ifdef UNIX | 1309 #if defined(UNIX) || defined(WIN32) |
1310 # define CHANNEL_PIPES | 1310 # define CHANNEL_PIPES |
1311 # define CHAN_FD_INVALID (-1) | |
1311 | 1312 |
1312 # define CHAN_OUT 1 | 1313 # define CHAN_OUT 1 |
1313 # define CHAN_ERR 2 | 1314 # define CHAN_ERR 2 |
1314 # define CHAN_IN 3 | 1315 # define CHAN_IN 3 |
1315 # define CH_OUT ch_pfd[CHAN_OUT].ch_fd | 1316 # define CH_OUT ch_pfd[CHAN_OUT].ch_fd |