diff options
author | Alex Dowad <alexinbeijing@gmail.com> | 2020-10-18 07:31:43 +0200 |
---|---|---|
committer | Alex Dowad <alexinbeijing@gmail.com> | 2021-01-15 21:55:41 +0200 |
commit | 6cbeb6476e9a5aed7b1630c8186c9fcddf8286a0 (patch) | |
tree | 7db6524ab198f7f6cd1e8990ef1ffbef77eeb3f8 | |
parent | 34ece408728a13991fdecdbf31e9bf12ca8c1902 (diff) | |
download | php-git-6cbeb6476e9a5aed7b1630c8186c9fcddf8286a0.tar.gz |
Remove unused macros from mbfilter_cp51932.c, mbfilter_iso2022jp_mobile.c
-rw-r--r-- | ext/mbstring/libmbfl/filters/mbfilter_cp51932.c | 7 | ||||
-rw-r--r-- | ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c | 7 |
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; \ |