From 0cfe60ecebea5808c8d97f3c98227c37d327d67d Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 11 Jun 2016 02:24:38 +0000 Subject: iso_8859.h: SHARP_s * enc/iso_8859.h (SHARP_s): name frequently used codepoint. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enc/iso_8859_9.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'enc/iso_8859_9.c') diff --git a/enc/iso_8859_9.c b/enc/iso_8859_9.c index 6303c85732..9beb4f68e6 100644 --- a/enc/iso_8859_9.c +++ b/enc/iso_8859_9.c @@ -28,6 +28,7 @@ */ #include "regenc.h" +#include "iso_8859.h" #define ENC_ISO_8859_9_TO_LOWER_CASE(c) EncISO_8859_9_ToLowerCaseTable[c] #define ENC_IS_ISO_8859_9_CTYPE(code,ctype) \ @@ -110,7 +111,7 @@ mbc_case_fold(OnigCaseFoldType flag, { const UChar* p = *pp; - if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) { + if (*p == SHARP_s && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) { *lower++ = 's'; *lower = 's'; (*pp)++; @@ -129,7 +130,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end) int v; const UChar* p = *pp; - if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) { + if (*p == SHARP_s && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) { (*pp)++; return TRUE; } -- cgit v1.2.3