summaryrefslogtreecommitdiff
path: root/enc/windows_1252.c
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-24 07:33:15 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-24 07:33:15 +0000
commit6ed393ad89eb821d838d70cf13040d3f39237554 (patch)
treeb64cb46fa0d9dad2f4f3aa3e4dd3136139243bd5 /enc/windows_1252.c
parent250139662e0ec32409020040dd6ef23df349efb7 (diff)
* regenc.h/c, include/ruby/oniguruma.h, enc/ascii.c, big5.c, cp949.c,
emacs_mule.c, euc_jp.c, euc_kr.c, euc_tw.c, gb18030.c, gbk.c, iso_8859_1|2|3|4|5|6|7|8|9|10|11|13|14|15|16.c, koi8_r.c, koi8_u.c, shift_jis.c, unicode.c, us_ascii.c, utf_16|32be|le.c, utf_8.c, windows_1250|51|52|53|54|57.c, windows_31j.c, unicode.c: Remove conditional compilation macro ONIG_CASE_MAPPING. [Feature #12386]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/windows_1252.c')
-rw-r--r--enc/windows_1252.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/enc/windows_1252.c b/enc/windows_1252.c
index afe9161..4427f8e 100644
--- a/enc/windows_1252.c
+++ b/enc/windows_1252.c
@@ -180,7 +180,7 @@ cp1252_get_case_fold_codes_by_str(OnigCaseFoldType flag,
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
flag, p, end, items);
}
-#ifdef ONIG_CASE_MAPPING
+
static int
case_map(OnigCaseFoldType* flagP, const OnigUChar** pp,
const OnigUChar* end, OnigUChar* to, OnigUChar* to_end,
@@ -227,7 +227,6 @@ case_map(OnigCaseFoldType* flagP, const OnigUChar** pp,
*flagP = flags;
return (int)(to-to_start);
}
-#endif /* ONIG_CASE_MAPPING */
OnigEncodingDefine(windows_1252, Windows_1252) = {
onigenc_single_byte_mbc_enc_len,
@@ -248,9 +247,7 @@ OnigEncodingDefine(windows_1252, Windows_1252) = {
onigenc_always_true_is_allowed_reverse_match,
0,
ONIGENC_FLAG_NONE,
-#ifdef ONIG_CASE_MAPPING
case_map,
-#endif /* ONIG_CASE_MAPPING */
};
/*
* Name: windows-1252