summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-12-20 09:29:36 -0700
committerKarl Williamson <public@khwilliamson.com>2012-12-22 11:11:33 -0700
commit7dbf68d2396b16bcbba2780133a8c8aa3b172884 (patch)
tree5ad51efe02db18c07b01f97e2f4d8dcc52923db6 /proto.h
parent5ac65bffc18d1c86e719feb45600a976e397ac76 (diff)
downloadperl-7dbf68d2396b16bcbba2780133a8c8aa3b172884.tar.gz
Create internal _is_utf8_mark()
This is so we can deprecate non-core use of the existing one in a future commit. XS coders should be using the macros in handy.h instead of calling such functions directly. A future commit will deprecate all of them, but first the core uses of this one must change so they don't generate deprecation messages. I will not have a chance to look for some time, but I suspect that most uses of this function in the core should be changed to use something else, but in the meantime, the non-core uses can be deprecated.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index ae3e254ca4..e07eacd2ae 100644
--- a/proto.h
+++ b/proto.h
@@ -44,6 +44,12 @@ PERL_CALLCONV bool Perl__is_utf8_FOO(pTHX_ const U8 classnum, const U8 *p)
#define PERL_ARGS_ASSERT__IS_UTF8_FOO \
assert(p)
+PERL_CALLCONV bool Perl__is_utf8_mark(pTHX_ const U8 *p)
+ __attribute__warn_unused_result__
+ __attribute__nonnull__(pTHX_1);
+#define PERL_ARGS_ASSERT__IS_UTF8_MARK \
+ assert(p)
+
PERL_CALLCONV bool Perl__is_utf8_perl_idstart(pTHX_ const U8 *p)
__attribute__warn_unused_result__
__attribute__nonnull__(pTHX_1);