summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-05-05 22:41:14 -0600
committerKarl Williamson <khw@cpan.org>2014-05-31 11:52:32 -0600
commit3cedd9d93070bd6f0cb074a3013165cd9a630fca (patch)
treefecd55cd9272e99b60d415793e44feef7a51f1ef /proto.h
parent5dca92787911972e6827cbb3173c9b1f44ea8613 (diff)
downloadperl-3cedd9d93070bd6f0cb074a3013165cd9a630fca.tar.gz
Make is_utf8_char_buf() a macro
This function is now more efficiently implemented as a synonym for isUTF8_CHAR(). We retain the Perl_is_utf8_char_buf() function for code that calls it that way.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto.h b/proto.h
index d4a8589a22..e5b747842a 100644
--- a/proto.h
+++ b/proto.h
@@ -1992,9 +1992,9 @@ PERL_CALLCONV STRLEN Perl_is_utf8_char(const U8 *s)
#define PERL_ARGS_ASSERT_IS_UTF8_CHAR \
assert(s)
-PERL_CALLCONV STRLEN Perl_is_utf8_char_buf(const U8 *buf, const U8 *buf_end)
+/* PERL_CALLCONV STRLEN Perl_is_utf8_char_buf(const U8 *buf, const U8 *buf_end)
__attribute__nonnull__(1)
- __attribute__nonnull__(2);
+ __attribute__nonnull__(2); */
#define PERL_ARGS_ASSERT_IS_UTF8_CHAR_BUF \
assert(buf); assert(buf_end)