From aa167556cd2954bb9a9fb0a005178462087a4600 Mon Sep 17 00:00:00 2001 From: Tomas Heinrich Date: Fri, 26 Mar 2010 13:13:24 +0100 Subject: unicode: optional table for better handling of neutral bidi chars Off: function old new delta unicode_bidi_isrtl - 55 +55 isrtl_str 51 65 +14 unicode_isrtl 55 - -55 read_line_input 5003 4937 -66 ------------------------------------------------------------------------------ (add/remove: 1/4 grow/shrink: 1/1 up/down: 69/-121) Total: -52 bytes On: function old new delta static.neutral_b - 320 +320 static.neutral_p - 142 +142 unicode_bidi_isrtl - 55 +55 unicode_bidi_is_neutral_wchar - 55 +55 isrtl_str 51 59 +8 unicode_isrtl 55 - -55 read_line_input 5003 4937 -66 ------------------------------------------------------------------------------ (add/remove: 4/4 grow/shrink: 1/1 up/down: 580/-121) Total: 459 bytes Signed-off-by: Tomas Heinrich Signed-off-by: Denys Vlasenko --- libbb/unicode_wcwidth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbb/unicode_wcwidth.c') diff --git a/libbb/unicode_wcwidth.c b/libbb/unicode_wcwidth.c index 7eccc39..0bb6227 100644 --- a/libbb/unicode_wcwidth.c +++ b/libbb/unicode_wcwidth.c @@ -538,6 +538,6 @@ static int wcwidth(unsigned ucs) || ((ucs >> 17) == (2 >> 1)) /* 20000..3ffff: Supplementary and Tertiary Ideographic Planes */ # endif ); -# endif -#endif +# endif /* >= 0x1100 */ +#endif /* >= 0x300 */ } -- cgit v1.1