Skip to content

Commit be1548c

Browse files
committed
Inline utf8_to_uvchr_buf
This is a one line function that just calls another function.
1 parent bb07e05 commit be1548c

File tree

4 files changed

+14
-17
lines changed

4 files changed

+14
-17
lines changed

embed.fnc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3737,7 +3737,7 @@ EMXp |U8 * |utf16_to_utf8_reversed \
37373737
|NN Size_t *newlen
37383738
ADbdp |UV |utf8_to_uvchr |NN const U8 *s \
37393739
|NULLOK STRLEN *retlen
3740-
AMdp |UV |utf8_to_uvchr_buf \
3740+
AMdip |UV |utf8_to_uvchr_buf \
37413741
|NN const U8 *s \
37423742
|NN const U8 *send \
37433743
|NULLOK STRLEN *retlen

inline.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3137,6 +3137,14 @@ Perl_utf8n_to_uvchr_msgs(const U8 * const s0,
31373137
errors, msgs);
31383138
}
31393139

3140+
PERL_STATIC_INLINE UV
3141+
Perl_utf8_to_uvchr_buf(pTHX_ const U8 *s, const U8 *send, STRLEN *retlen)
3142+
{
3143+
PERL_ARGS_ASSERT_UTF8_TO_UVCHR_BUF;
3144+
3145+
return utf8_to_uvchr_buf_helper(s, send, retlen);
3146+
}
3147+
31403148
PERL_STATIC_INLINE UV
31413149
Perl_utf8_to_uvchr_buf_helper(pTHX_ const U8 *s, const U8 *send, STRLEN *retlen)
31423150
{

proto.h

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

utf8.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,19 +2117,8 @@ returned.
21172117
21182118
=cut
21192119
2120-
Also implemented as a macro in utf8.h
2121-
21222120
*/
21232121

2124-
2125-
UV
2126-
Perl_utf8_to_uvchr_buf(pTHX_ const U8 *s, const U8 *send, STRLEN *retlen)
2127-
{
2128-
PERL_ARGS_ASSERT_UTF8_TO_UVCHR_BUF;
2129-
2130-
return utf8_to_uvchr_buf_helper(s, send, retlen);
2131-
}
2132-
21332122
/*
21342123
=for apidoc utf8_length
21352124

0 commit comments

Comments
 (0)