aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.h
diff options
context:
space:
mode:
authorGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-01 01:13:42 +0800
committerGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-17 14:58:52 +0800
commit89993e9cbf95b55c941183f4db6ef41e4ce30029 (patch)
treebc497bb2a6c8662aeeed883205ee4ade948b7f87 /io.h
parent78ab7e7ba12036140941e145ed338a126125f487 (diff)
Let io_data_t constructor take optional io_mode and fd
Diffstat (limited to 'io.h')
-rw-r--r--io.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/io.h b/io.h
index b7abbec7..96f5cbaf 100644
--- a/io.h
+++ b/io.h
@@ -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),