diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-24 08:39:09 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-24 08:39:09 +0000 |
commit | 09c7eba7b1293ec187e4acd12d11887540df41a7 (patch) | |
tree | c61d7bcc69a824833c86c62fbf5f8f4a4ac8f7ae /include/ruby | |
parent | d7bf4546664feb3f8b4b07817978e389e9f2b381 (diff) | |
download | ruby-09c7eba7b1293ec187e4acd12d11887540df41a7.tar.gz |
* include/ruby/encoding.h (rb_str_transcode): make 3rd argument
rb_econv_option_t*.
* transcode.c (transcode_loop): take rb_econv_option_t* as a argument.
(str_transcode0): ditto.
(str_transcode): make rb_econv_option_t and call str_transcode0 with
it.
(rb_str_transcode): take rb_econv_option_t*.
* io.c (io_fwrite): follow the rb_str_transcode change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/encoding.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 9f219d5880..9ad7d3b53a 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -194,8 +194,6 @@ rb_enc_dummy_p(rb_encoding *enc) return ENC_DUMMY_P(enc) != 0; } -VALUE rb_str_transcode(VALUE str, VALUE to, int ecflags); - /* econv stuff */ typedef enum { @@ -254,6 +252,8 @@ typedef struct { /* replacement character, etc. */ } rb_econv_option_t; +VALUE rb_str_transcode(VALUE str, VALUE to, rb_econv_option_t *ecopts); + void rb_econv_opts(VALUE hash, rb_econv_option_t *opts); rb_econv_t *rb_econv_open(const char *source_encoding, const char *destination_encoding, rb_econv_option_t *opts); |