diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-07 17:08:38 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-07 17:08:38 +0000 |
commit | 6e36c4842eb9cf238953179f0468a67e6588ca09 (patch) | |
tree | 9c6628e913127a49d48b80e5ba089a48c86ae1ef | |
parent | 82a5736519578dddcb7876ebe343fd4b563b8678 (diff) | |
download | ruby-6e36c4842eb9cf238953179f0468a67e6588ca09.tar.gz |
* include/ruby/encoding.h (rb_econv_set_replacement): renamed from
rb_econv_set_replacemenet.
* transcode.c: follow the renaming.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | include/ruby/encoding.h | 2 | ||||
-rw-r--r-- | transcode.c | 6 |
3 files changed, 11 insertions, 4 deletions
@@ -1,3 +1,10 @@ +Mon Sep 8 02:04:25 2008 Tanaka Akira <akr@fsij.org> + + * include/ruby/encoding.h (rb_econv_set_replacement): renamed from + rb_econv_set_replacemenet. + + * transcode.c: follow the renaming. + Mon Sep 8 01:10:41 2008 Tanaka Akira <akr@fsij.org> * tool/transcode-tblgen.rb (transcode_tblgen): log message refined. diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index eac7326a6d..0519340c1f 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -222,7 +222,7 @@ rb_econv_result_t rb_econv_convert(rb_econv_t *ec, void rb_econv_close(rb_econv_t *ec); /* result: 0:success -1:failure */ -int rb_econv_set_replacemenet(rb_econv_t *ec, const unsigned char *str, size_t len, const char *encname); +int rb_econv_set_replacement(rb_econv_t *ec, const unsigned char *str, size_t len, const char *encname); VALUE rb_econv_open_exc(const char *senc, const char *denc, int ecflags); diff --git a/transcode.c b/transcode.c index cd7be00e12..49e8ed3856 100644 --- a/transcode.c +++ b/transcode.c @@ -1980,7 +1980,7 @@ make_replacement(rb_econv_t *ec) } int -rb_econv_set_replacemenet(rb_econv_t *ec, +rb_econv_set_replacement(rb_econv_t *ec, const unsigned char *str, size_t len, const char *encname) { unsigned char *str2; @@ -2260,7 +2260,7 @@ rb_econv_open_opts(const char *source_encoding, const char *destination_encoding int ret; rb_encoding *enc = rb_enc_get(replacement); - ret = rb_econv_set_replacemenet(ec, + ret = rb_econv_set_replacement(ec, (const unsigned char *)RSTRING_PTR(replacement), RSTRING_LEN(replacement), enc->name); @@ -3357,7 +3357,7 @@ econv_set_replacement(VALUE self, VALUE arg) StringValue(string); enc = rb_enc_get(string); - ret = rb_econv_set_replacemenet(ec, + ret = rb_econv_set_replacement(ec, (const unsigned char *)RSTRING_PTR(string), RSTRING_LEN(string), enc->name); |