Skip to content

Commit 7027323

Browse files
committed
Move Perl_is_utf8_char_buf from mathoms to be a macro is utf8.h
1 parent 047e53f commit 7027323

File tree

5 files changed

+6
-15
lines changed

5 files changed

+6
-15
lines changed

embed.fnc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ CRp |bool |_is_uni_perl_idstart \
16861686
|UV c
16871687
ARTdip |Size_t |isUTF8_CHAR |NN const U8 * const s0 \
16881688
|NN const U8 * const e
1689-
AMTbdp |STRLEN |is_utf8_char_buf \
1689+
ATdmp |STRLEN |is_utf8_char_buf \
16901690
|NN const U8 *buf \
16911691
|NN const U8 *buf_end
16921692
ARTdip |Size_t |isUTF8_CHAR_flags \

embed.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@
339339
# define is_safe_syscall(a,b,c,d) Perl_is_safe_syscall(aTHX_ a,b,c,d)
340340
# define is_strict_utf8_string_loclen Perl_is_strict_utf8_string_loclen
341341
# define is_utf8_FF_helper_ Perl_is_utf8_FF_helper_
342+
# define is_utf8_char_buf Perl_is_utf8_char_buf
342343
# define is_utf8_char_helper_ Perl_is_utf8_char_helper_
343344
# define is_utf8_fixed_width_buf_loclen_flags Perl_is_utf8_fixed_width_buf_loclen_flags
344345
# define is_utf8_invariant_string_loc Perl_is_utf8_invariant_string_loc

mathoms.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,6 @@ Perl_sv_nounlocking(pTHX_ SV *sv)
135135
PERL_UNUSED_ARG(sv);
136136
}
137137

138-
STRLEN
139-
Perl_is_utf8_char_buf(const U8 *buf, const U8* buf_end)
140-
{
141-
142-
PERL_ARGS_ASSERT_IS_UTF8_CHAR_BUF;
143-
144-
return isUTF8_CHAR(buf, buf_end);
145-
}
146138
/*
147139
=for apidoc_section $unicode
148140
=for apidoc utf8_to_uvuni

proto.h

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

utf8.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ point's representation.
12971297
/* Should be removed; maybe deprecated, but not used in CPAN */
12981298
#define SHARP_S_SKIP 2
12991299

1300-
#define is_utf8_char_buf(buf, buf_end) isUTF8_CHAR(buf, buf_end)
1300+
#define Perl_is_utf8_char_buf(buf, buf_end) isUTF8_CHAR(buf, buf_end)
13011301

13021302
/* Do not use; should be deprecated. Use isUTF8_CHAR() instead; this is
13031303
* retained solely for backwards compatibility */

0 commit comments

Comments
 (0)