aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.cpp
diff options
context:
space:
mode:
authorGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-15 16:18:03 +0800
committerGravatar Cheer Xiao <xiaqqaix@gmail.com>2013-01-17 15:55:05 +0800
commit4b6bd7cae5e731f8e2bafeabca59e5aaabd6749d (patch)
treefa8330fdeb42b37584c42fcdbf7f3c54c6d6ee2b /io.cpp
parent6f35792c74612f4b754125a5cfe9c96baa7854b9 (diff)
Split out io_file_t
Diffstat (limited to 'io.cpp')
-rw-r--r--io.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/io.cpp b/io.cpp
index 8bbc0743..9eb29f2b 100644
--- a/io.cpp
+++ b/io.cpp
@@ -55,9 +55,6 @@ void io_data_t::print() const
{
switch (io_mode)
{
- case IO_FILE:
- fprintf(stderr, "file (%s)\n", filename_cstr);
- break;
case IO_PIPE:
fprintf(stderr, "pipe {%d, %d}\n", param1.pipe_fd[0], param1.pipe_fd[1]);
break;
@@ -77,6 +74,11 @@ void io_fd_t::print() const
fprintf(stderr, "FD map %d -> %d\n", old_fd, fd);
}
+void io_file_t::print() const
+{
+ fprintf(stderr, "file (%s)\n", filename_cstr);
+}
+
void io_buffer_read(io_data_t *d)
{
exec_close(d->param1.pipe_fd[1]);