mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* encoding.c (enc_init_db): moved to enc/encdb.c.
* transcode.c (init_transcoder_table): moved to enc/trans/transdb.c. * enc/depend (enc/encdb.o enc/trans/transdb.o): depend on corresponding headers. * common.mk (COMMONOBJS): moved transcode.o from OBJS git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3f3fdb4869
commit
1369cfd16e
10 changed files with 76 additions and 58 deletions
|
@ -85,14 +85,6 @@ rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib)
|
|||
declare_transcoder(enc2, enc1, lib);
|
||||
}
|
||||
|
||||
static void
|
||||
init_transcoder_table(void)
|
||||
{
|
||||
#ifndef NO_TRANSDB_H
|
||||
#include "transdb.h"
|
||||
#endif
|
||||
}
|
||||
|
||||
#define encoding_equal(enc1, enc2) (STRCASECMP(enc1, enc2) == 0)
|
||||
|
||||
static const rb_transcoder *
|
||||
|
@ -451,7 +443,6 @@ Init_transcode(void)
|
|||
{
|
||||
transcoder_table = st_init_strcasetable();
|
||||
transcoder_lib_table = st_init_strcasetable();
|
||||
init_transcoder_table();
|
||||
|
||||
sym_invalid = ID2SYM(rb_intern("invalid"));
|
||||
sym_ignore = ID2SYM(rb_intern("ignore"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue