зеркало из https://github.com/github/ruby.git
encoding.c: NO_PRESERVED_ENCODING
* encoding.c (rb_enc_init): no longer needs NO_PRESERVED_ENCODING. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0953efabbb
Коммит
a10591ac8c
|
@ -1,4 +1,6 @@
|
|||
Mon Jul 15 02:32:04 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Mon Jul 15 02:32:58 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* encoding.c (rb_enc_init): no longer needs NO_PRESERVED_ENCODING.
|
||||
|
||||
* encoding.c (enc_inspect): defer loading autoloaded encoding.
|
||||
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
#define NO_LOCALE_CHARMAP 1
|
||||
#define NO_PRESERVED_ENCODING 1
|
||||
#include "encoding.c"
|
||||
|
|
|
@ -564,7 +564,6 @@ rb_enc_init(void)
|
|||
ENC_REGISTER(UTF_8);
|
||||
ENC_REGISTER(US_ASCII);
|
||||
#undef ENC_REGISTER
|
||||
#ifndef NO_PRESERVED_ENCODING
|
||||
#define ENCDB_REGISTER(name, enc) enc_register_at(ENCINDEX_##enc, name, NULL)
|
||||
ENCDB_REGISTER("UTF-16BE", UTF_16BE);
|
||||
ENCDB_REGISTER("UTF-16LE", UTF_16LE);
|
||||
|
@ -577,7 +576,6 @@ rb_enc_init(void)
|
|||
ENCDB_REGISTER("EUC-JP", EUC_JP);
|
||||
ENCDB_REGISTER("Windows-31J", Windows_31J);
|
||||
#undef ENCDB_REGISTER
|
||||
#endif
|
||||
enc_table.count = ENCINDEX_BUILTIN_MAX;
|
||||
}
|
||||
|
||||
|
|
|
@ -205,7 +205,6 @@ enum ruby_preserved_encindex {
|
|||
ENCINDEX_UTF_8,
|
||||
ENCINDEX_US_ASCII,
|
||||
|
||||
#ifndef NO_PRESERVED_ENCODING
|
||||
/* preserved indexes */
|
||||
ENCINDEX_UTF_16BE,
|
||||
ENCINDEX_UTF_16LE,
|
||||
|
@ -218,7 +217,6 @@ enum ruby_preserved_encindex {
|
|||
/* for old options of regexp */
|
||||
ENCINDEX_EUC_JP,
|
||||
ENCINDEX_Windows_31J,
|
||||
#endif
|
||||
|
||||
ENCINDEX_BUILTIN_MAX
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче