diff options
author | davidflanagan <davidflanagan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-22 16:21:09 +0000 |
---|---|---|
committer | davidflanagan <davidflanagan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-22 16:21:09 +0000 |
commit | ac718b9c6cc180589eebd2d72fd2844b985701dd (patch) | |
tree | a2cc4045e34f95449633c2ccc75ecf8a8fc4b5f5 /include/ruby/io.h | |
parent | d2a5c2ba3a57ebbc1c5898cc3a7ea83385910a29 (diff) | |
download | ruby-ac718b9c6cc180589eebd2d72fd2844b985701dd.tar.gz ruby-ac718b9c6cc180589eebd2d72fd2844b985701dd.tar.xz ruby-ac718b9c6cc180589eebd2d72fd2844b985701dd.zip |
* io.c, io.h: temporary patch to partially implement transcode-on-read and transcode-on-write
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/io.h')
-rw-r--r-- | include/ruby/io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index 511159293..1e605ea8c 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -47,6 +47,7 @@ typedef struct rb_io_t { int rbuf_capa; VALUE tied_io_for_writing; rb_encoding *enc; + rb_encoding *enc2; } rb_io_t; #define HAVE_RB_IO_T 1 @@ -91,6 +92,7 @@ typedef struct rb_io_t { fp->rbuf_capa = 0;\ fp->tied_io_for_writing = 0;\ fp->enc = 0;\ + fp->enc2 = 0;\ } while (0) FILE *rb_io_stdio_file(rb_io_t *fptr); |