aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-15 19:49:55 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-15 19:49:55 -0700
commit73c2846d64216b42064bc4a42f6e779831a8e9e6 (patch)
tree0d84560b3daa5518adfbf68e4b4446ad706b76a2 /io.h
parentacd203840720897d015b7f5f4e8e71927e667da2 (diff)
Remove support for input IO_BUFFERs, which were only used by fish_pager
Diffstat (limited to 'io.h')
-rw-r--r--io.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/io.h b/io.h
index 17e2b342..894e4c28 100644
--- a/io.h
+++ b/io.h
@@ -131,8 +131,8 @@ private:
/** buffer to save output in */
std::vector<char> out_buffer;
- io_buffer_t(int f, bool i):
- io_pipe_t(IO_BUFFER, f, i),
+ io_buffer_t(int f):
+ io_pipe_t(IO_BUFFER, f, false /* not input */),
out_buffer()
{
}
@@ -172,16 +172,12 @@ public:
/**
Create a IO_BUFFER type io redirection, complete with a pipe and a
- vector<char> for output. The default file descriptor used is 1 for
- output buffering and 0 for input buffering.
+ vector<char> for output. The default file descriptor used is STDOUT_FILENO
+ for buffering
- \param is_input set this parameter to zero if the buffer should be
- used to buffer the output of a command, or non-zero to buffer the
- input to a command.
-
- \param fd when -1, determined from is_input.
+ \param fd the fd that will be mapped in the child process, typically STDOUT_FILENO
*/
- static io_buffer_t *create(bool is_input, int fd = -1);
+ static io_buffer_t *create(int fd);
};
class io_chain_t : public std::vector<shared_ptr<io_data_t> >