summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-11-28 20:16:06 -0700
committerKarl Williamson <public@khwilliamson.com>2012-11-29 08:59:03 -0700
commitf91dcd139f8093525e1a00c3803de98b1bf89cab (patch)
treec04a824820a33b47469fb88c742edccca993a3b3 /proto.h
parentd65654cb6cbb4fc9585a24b036a3a7a4cc1f1fa5 (diff)
downloadperl-f91dcd139f8093525e1a00c3803de98b1bf89cab.tar.gz
Make isIDFIRST_uni() return identically as isIDFIRST_utf8()
These two macros should have the same results for the same input code points. Prior to this patch, the _uni() macro returned the official Unicode ID_Start property, and the _utf8() macro returned Perl's slightly restricted definition. Now both return Perl's.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index 560798a1a5..f9d7b9e039 100644
--- a/proto.h
+++ b/proto.h
@@ -32,6 +32,9 @@ PERL_CALLCONV void Perl_Slab_Free(pTHX_ void *op)
#define PERL_ARGS_ASSERT_SLAB_FREE \
assert(op)
+PERL_CALLCONV bool Perl__is_uni_perl_idstart(pTHX_ UV c)
+ __attribute__warn_unused_result__;
+
PERL_CALLCONV bool Perl__is_utf8_perl_idstart(pTHX_ const U8 *p)
__attribute__warn_unused_result__
__attribute__nonnull__(pTHX_1);