diff options
author | Cheer Xiao <xiaqqaix@gmail.com> | 2013-01-01 01:13:42 +0800 |
---|---|---|
committer | Cheer Xiao <xiaqqaix@gmail.com> | 2013-01-17 14:58:52 +0800 |
commit | 89993e9cbf95b55c941183f4db6ef41e4ce30029 (patch) | |
tree | bc497bb2a6c8662aeeed883205ee4ade948b7f87 /io.h | |
parent | 78ab7e7ba12036140941e145ed338a126125f487 (diff) |
Let io_data_t constructor take optional io_mode and fd
Diffstat (limited to 'io.h')
-rw-r--r-- | io.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -97,10 +97,10 @@ public: /** Set to true if this is an input io redirection */ bool is_input; - io_data_t() : + io_data_t(io_mode_t m = IO_INVALID, int f=0) : out_buffer(), - io_mode(IO_INVALID), - fd(0), + io_mode(m), + fd(f), param1(), param2(), filename_cstr(NULL), |