From fdb6583df1c4f517177410eb3717709aebd3b25a Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Fri, 6 Nov 2015 10:56:23 -0700 Subject: [PATCH] utf8.h: Refactor a macro This new definition expands to the same thing as before, but now the unexpanded text is identical to the EBCDIC definition (which expands to something else), so the next commit can combine the ASCII and EBCDIC ones into a single definition. --- utf8.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utf8.h b/utf8.h index 4a964c4..129356e 100644 --- a/utf8.h +++ b/utf8.h @@ -275,7 +275,7 @@ encoded as UTF-8. C is a native (ASCII or EBCDIC) code point if less than =cut */ -#define UVCHR_SKIP(uv) OFFUNISKIP(uv) +#define UVCHR_SKIP(uv) ( UVCHR_IS_INVARIANT(uv) ? 1 : __BASE_UNI_SKIP(uv)) /* ^? is defined to be DEL on ASCII systems. See the definition of toCTRL() * for more */ -- 1.8.3.1