summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-06-25 13:09:08 -0600
committerKarl Williamson <khw@cpan.org>2021-08-14 06:47:43 -0600
commit22f363ffd253b5142b1138438c30f34da9494d4a (patch)
treea02ca691b6818aafce1300ab4cdd3706ff7c4087 /proto.h
parent22afef87083fc7ad1b066588f5c20637fd387805 (diff)
downloadperl-22f363ffd253b5142b1138438c30f34da9494d4a.tar.gz
Make macro isUTF8_CHAR_flags an inline fcn
This makes it use the fast DFA for this functionality.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index 4dd2c192e0..16080febb6 100644
--- a/proto.h
+++ b/proto.h
@@ -1665,6 +1665,13 @@ PERL_STATIC_INLINE Size_t Perl_isUTF8_CHAR(const U8 * const s0, const U8 * const
assert(s0); assert(e)
#endif
+#ifndef PERL_NO_INLINE_FUNCTIONS
+PERL_STATIC_INLINE Size_t Perl_isUTF8_CHAR_flags(const U8 * const s0, const U8 * const e, const U32 flags)
+ __attribute__warn_unused_result__;
+#define PERL_ARGS_ASSERT_ISUTF8_CHAR_FLAGS \
+ assert(s0); assert(e)
+#endif
+
/* PERL_CALLCONV bool is_ascii_string(const U8* const s, STRLEN len)
__attribute__warn_unused_result__
__attribute__pure__; */