зеркало из https://github.com/github/ruby.git
* 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:
Родитель
ae1b02a8da
Коммит
bf5e559ce0
|
@ -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>
|
Sun Aug 24 19:48:46 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* include/ruby/encoding.h (rb_econv_t): use rb_econv_option_t.
|
* 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
|
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;
|
transcoder_entry_t *entry;
|
||||||
|
|
||||||
|
@ -112,7 +112,6 @@ rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib)
|
||||||
lib ? lib : "(null)");
|
lib ? lib : "(null)");
|
||||||
}
|
}
|
||||||
declare_transcoder(enc1, enc2, lib);
|
declare_transcoder(enc1, enc2, lib);
|
||||||
declare_transcoder(enc2, enc1, lib);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define encoding_equal(enc1, enc2) (STRCASECMP(enc1, enc2) == 0)
|
#define encoding_equal(enc1, enc2) (STRCASECMP(enc1, enc2) == 0)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче