diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | io.c | 6 |
2 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,9 @@ +Sun Aug 24 18:02:14 2008 Tanaka Akira <akr@fsij.org> + + * io.c (struct argf): use struct rb_io_enc_t. + (argf_enc): follow the struct argf change. + (argf_enc2): ditto. + Sun Aug 24 17:36:21 2008 Tanaka Akira <akr@fsij.org> * include/ruby/encoding.h (rb_str_transcode): make 3rd argument @@ -138,7 +138,7 @@ struct argf { VALUE argv; char *inplace; int binmode; - rb_encoding *enc, *enc2; + struct rb_io_enc_t encs; }; static int max_file_descriptor = NOFILE; @@ -5743,8 +5743,8 @@ argf_alloc(VALUE klass) #define lineno ARGF.lineno #define ruby_inplace_mode ARGF.inplace #define argf_binmode ARGF.binmode -#define argf_enc ARGF.enc -#define argf_enc2 ARGF.enc2 +#define argf_enc ARGF.encs.enc +#define argf_enc2 ARGF.encs.enc2 #define rb_argv ARGF.argv static VALUE |