summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-20 03:16:53 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-20 03:16:53 +0000
commite6025fe36afa3280c631382f2bfadf6e4e3a9e06 (patch)
tree3ab379ba7ba0806fb1d53e30e584cdf46a4de161 /include
parentb6064b59eb95d5124a9b89154686f6ee3f711159 (diff)
downloadruby-e6025fe36afa3280c631382f2bfadf6e4e3a9e06.tar.gz
ruby-e6025fe36afa3280c631382f2bfadf6e4e3a9e06.tar.xz
ruby-e6025fe36afa3280c631382f2bfadf6e4e3a9e06.zip
* include/ruby/io.h (rb_io_t): add tied_io_for_writing member.
* io.c: use tied_io_for_writing for duplex popen. * gc.c: mark tied_io_for_writing. * common.mk: gc.o depends io.h. [ruby-dev:32205] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h
index becf262ec..c2e0eaa2f 100644
--- a/include/ruby/io.h
+++ b/include/ruby/io.h
@@ -45,6 +45,7 @@ typedef struct rb_io_t {
int rbuf_off;
int rbuf_len;
int rbuf_capa;
+ VALUE tied_io_for_writing;
rb_encoding *enc;
} rb_io_t;
@@ -88,6 +89,7 @@ typedef struct rb_io_t {
fp->rbuf_off = 0;\
fp->rbuf_len = 0;\
fp->rbuf_capa = 0;\
+ fp->tied_io_for_writing = 0;\
} while (0)
FILE *rb_io_stdio_file(rb_io_t *fptr);