diff options
author | Cheer Xiao <xiaqqaix@gmail.com> | 2013-01-01 01:11:46 +0800 |
---|---|---|
committer | Cheer Xiao <xiaqqaix@gmail.com> | 2013-01-17 14:54:18 +0800 |
commit | 146a3530859ebade88d032814bdf049dcff61bfb (patch) | |
tree | 6ab090c7f30d3e1e05825e83ae9e5ee67145d827 /io.h | |
parent | 214ef3dd0ba3cce94edaccc5170ee5fe435ebc38 (diff) |
rename enum io_mode -> io_mode_t; make io_data_t::io_mode that type
Diffstat (limited to 'io.h')
-rw-r--r-- | io.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -8,7 +8,7 @@ using std::tr1::shared_ptr; /** Describes what type of IO operation an io_data_t represents */ -enum io_mode +enum io_mode_t { IO_FILE, IO_PIPE, IO_FD, IO_BUFFER, IO_CLOSE }; @@ -26,7 +26,7 @@ private: public: /** Type of redirect */ - int io_mode; + io_mode_t io_mode; /** FD to redirect */ int fd; @@ -99,7 +99,7 @@ public: io_data_t() : out_buffer(), - io_mode(0), + io_mode(IO_FILE), fd(0), param1(), param2(), |