summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/mbstring/libmbfl/filters/mbfilter_cp51932.c7
-rw-r--r--ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c7
2 files changed, 0 insertions, 14 deletions
diff --git a/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c b/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c
index 1d64429c21..b4e78eef1c 100644
--- a/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c
+++ b/ext/mbstring/libmbfl/filters/mbfilter_cp51932.c
@@ -90,13 +90,6 @@ const struct mbfl_convert_vtbl vtbl_wchar_cp51932 = {
#define CK(statement) do { if ((statement) < 0) return (-1); } while (0)
-#define sjistoidx(c1, c2) \
- (((c1) > 0x9f) \
- ? (((c1) - 0xc1) * 188 + (c2) - (((c2) > 0x7e) ? 0x41 : 0x40)) \
- : (((c1) - 0x81) * 188 + (c2) - (((c2) > 0x7e) ? 0x41 : 0x40)))
-#define idxtoeuc1(c) (((c) / 94) + 0xa1)
-#define idxtoeuc2(c) (((c) % 94) + 0xa1)
-
/*
* cp51932 => wchar
*/
diff --git a/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c b/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c
index 0099fb1ebb..2088418b3a 100644
--- a/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c
+++ b/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c
@@ -72,13 +72,6 @@ const struct mbfl_convert_vtbl vtbl_wchar_2022jp_kddi = {
#define CK(statement) do { if ((statement) < 0) return (-1); } while (0)
-#define sjistoidx(c1, c2) \
- (((c1) > 0x9f) \
- ? (((c1) - 0xc1) * 188 + (c2) - (((c2) > 0x7e) ? 0x41 : 0x40)) \
- : (((c1) - 0x81) * 188 + (c2) - (((c2) > 0x7e) ? 0x41 : 0x40)))
-#define idxtojis1(c) (((c) / 94) + 0x21)
-#define idxtojis2(c) (((c) % 94) + 0x21)
-
#define SJIS_ENCODE(c1,c2,s1,s2) \
do { \
s1 = c1; \