mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c, io.h: temporary patch to partially implement transcode-on-read and transcode-on-write
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
018bdcadac
commit
b83cbb0c7c
3 changed files with 72 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue