summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-11-06 10:56:23 -0700
committerKarl Williamson <khw@cpan.org>2015-12-05 22:06:50 -0700
commitfdb6583df1c4f517177410eb3717709aebd3b25a (patch)
treeab608b16702e8e5a3baab0e6b425eeb3c005b78b /utf8.h
parent72164d3add31277285dcd604f1d805aac391be5b (diff)
downloadperl-fdb6583df1c4f517177410eb3717709aebd3b25a.tar.gz
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.
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.h b/utf8.h
index 4a964c437b..129356eb4e 100644
--- a/utf8.h
+++ b/utf8.h
@@ -275,7 +275,7 @@ encoded as UTF-8. C<cp> 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 */