diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-24 09:03:04 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-24 09:03:04 +0000 |
commit | 6d019ccbd0f93b6be47884f4cc814798614d284e (patch) | |
tree | 503d6fc640f61d62d9281d2e9bde8ec1440d9abd | |
parent | 09c7eba7b1293ec187e4acd12d11887540df41a7 (diff) | |
download | ruby-6d019ccbd0f93b6be47884f4cc814798614d284e.tar.gz |
* io.c (struct argf): use struct rb_io_enc_t.
(argf_enc): follow the struct argf change.
(argf_enc2): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 |