* transcode.c (declare_transcoder): arguments order changed.

(rb_declare_transcoder): call declare_transcoder just once.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-08-24 15:13:37 +00:00
Родитель ae1b02a8da
Коммит bf5e559ce0
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Mon Aug 25 00:11:02 2008 Tanaka Akira <akr@fsij.org>
* transcode.c (declare_transcoder): arguments order changed.
(rb_declare_transcoder): call declare_transcoder just once.
Sun Aug 24 19:48:46 2008 Tanaka Akira <akr@fsij.org>
* include/ruby/encoding.h (rb_econv_t): use rb_econv_option_t.

Просмотреть файл

@ -93,7 +93,7 @@ rb_register_transcoder(const rb_transcoder *tr)
}
static void
declare_transcoder(const char *to, const char *from, const char *lib)
declare_transcoder(const char *from, const char *to, const char *lib)
{
transcoder_entry_t *entry;
@ -112,7 +112,6 @@ rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib)
lib ? lib : "(null)");
}
declare_transcoder(enc1, enc2, lib);
declare_transcoder(enc2, enc1, lib);
}
#define encoding_equal(enc1, enc2) (STRCASECMP(enc1, enc2) == 0)