Let io_data_t constructor take optional io_mode and fd

This commit is contained in:
Cheer Xiao 2013-01-01 01:13:42 +08:00
parent 78ab7e7ba1
commit 89993e9cbf

6
io.h
View file

@ -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),