summaryrefslogtreecommitdiff
path: root/enc/utf_16le.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-15 13:36:18 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-15 13:36:18 +0000
commitedc61cf4c19c089d210c7774994ee6d57bff65ad (patch)
treee7ed05f4840d0eb293ad4420c212debca496a2b0 /enc/utf_16le.c
parentd2a377d747c707bed4c2fb880fe4147807801e08 (diff)
* encoding.c (ENC_REGISTER): use &OnigEncoding*.
(ENCINDEX_UTF_8): renamed from ENCINDEX_UTF8. (rb_enc_init): use ENC_REGISTER. * include/ruby/oniguruma.h (OnigEncodingUTF8, ONIG_ENCODING_UTF8): removed. * enc/*.c: remove use of &encoding_*; use enc argument instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/utf_16le.c')
-rw-r--r--enc/utf_16le.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/enc/utf_16le.c b/enc/utf_16le.c
index 1bfd231..bd3757a 100644
--- a/enc/utf_16le.c
+++ b/enc/utf_16le.c
@@ -29,8 +29,6 @@
#include "regenc.h"
-OnigEncodingDeclare(UTF_16LE);
-
#define UTF16_IS_SURROGATE_FIRST(c) (c >= 0xd8 && c <= 0xdb)
#define UTF16_IS_SURROGATE_SECOND(c) (c >= 0xdc && c <= 0xdf)
@@ -157,7 +155,7 @@ utf16le_mbc_case_fold(OnigCaseFoldType flag,
return 2;
}
else
- return onigenc_unicode_mbc_case_fold(&OnigEncodingName(UTF_16LE), flag, pp,
+ return onigenc_unicode_mbc_case_fold(enc, flag, pp,
end, fold);
}
@@ -216,7 +214,7 @@ utf16le_get_case_fold_codes_by_str(OnigCaseFoldType flag,
OnigCaseFoldCodeItem items[],
struct OnigEncodingTypeST* enc ARG_UNUSED)
{
- return onigenc_unicode_get_case_fold_codes_by_str(&OnigEncodingName(UTF_16LE),
+ return onigenc_unicode_get_case_fold_codes_by_str(enc,
flag, p, end, items);
}