From 5aaebcb3428d61bb90e5f0cfcdee0166b5bcb64e Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 26 Feb 2013 13:35:12 -0700 Subject: Add macro OFFUNISKIP This means use official Unicode code point numbering, not native. Doing this converts the existing UNISKIP calls in the code to refer to native code points, which is what they meant anyway. The terminology is somewhat ambiguous, but I don't think it will cause real confusion. NATIVE_SKIP is also introduced for situations where it is important to be precise. --- toke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toke.c') diff --git a/toke.c b/toke.c index 73f35909b2..735e0db579 100644 --- a/toke.c +++ b/toke.c @@ -3772,7 +3772,7 @@ S_scan_const(pTHX_ char *start) const UV nextuv = (this_utf8) ? utf8n_to_uvchr((U8*)s, send - s, &len, 0) : (UV) ((U8) *s); - const STRLEN need = UNISKIP(NATIVE_TO_UNI(nextuv)); + const STRLEN need = UNISKIP(nextuv); if (!has_utf8) { SvCUR_set(sv, d - SvPVX_const(sv)); SvPOK_on(sv); -- cgit v1.2.1