Skip to content

Commit dee72af

Browse files
committed
Use new embed.fnc implementation for uv_to_utf8_flags
This shows how the new capability works for chaining elements, as uv_to_utf8 calls this, which now calls uv_to_utf8_msgs
1 parent 5222b77 commit dee72af

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

embed.fnc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3860,10 +3860,11 @@ Cp |U8 * |uvoffuni_to_utf8_flags_msgs \
38603860
Adp |U8 * |uv_to_utf8 |NN U8 *d \
38613861
|UV uv \
38623862
= uv_to_utf8_flags(d,uv,0)
3863-
Adip |U8 * |uv_to_utf8_flags \
3863+
Adp |U8 * |uv_to_utf8_flags \
38643864
|NN U8 *d \
38653865
|UV uv \
3866-
|UV flags
3866+
|UV flags \
3867+
= uv_to_utf8_msgs(d,uv,flags,0)
38673868
Adip |U8 * |uv_to_utf8_msgs|NN U8 *d \
38683869
|UV uv \
38693870
|UV flags \

embed.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@
827827
# define utf8n_to_uvchr_error Perl_utf8n_to_uvchr_error
828828
# define utf8n_to_uvchr_msgs Perl_utf8n_to_uvchr_msgs
829829
# define uv_to_utf8(d,uv) uv_to_utf8_flags(d,uv,0)
830-
# define uv_to_utf8_flags(a,b,c) Perl_uv_to_utf8_flags(aTHX_ a,b,c)
830+
# define uv_to_utf8_flags(d,uv,flags) uv_to_utf8_msgs(d,uv,flags,0)
831831
# define uv_to_utf8_msgs(a,b,c,d) Perl_uv_to_utf8_msgs(aTHX_ a,b,c,d)
832832
# define uvoffuni_to_utf8_flags_msgs(a,b,c,d) Perl_uvoffuni_to_utf8_flags_msgs(aTHX_ a,b,c,d)
833833
# define valid_identifier_pve(a,b,c) Perl_valid_identifier_pve(aTHX_ a,b,c)
@@ -2264,11 +2264,13 @@
22642264
# if defined(USE_THREADS)
22652265
# define Perl_sv_setsv(mTHX,dsv,ssv) Perl_sv_setsv_flags(mTHX,dsv,ssv,SV_GMAGIC|SV_DO_COW_SVSETSV)
22662266
# define Perl_uv_to_utf8(mTHX,d,uv) Perl_uv_to_utf8_flags(mTHX,d,uv,0)
2267+
# define Perl_uv_to_utf8_flags(mTHX,d,uv,flags) Perl_uv_to_utf8_msgs(mTHX,d,uv,flags,0)
22672268
# define thread_locale_init() Perl_thread_locale_init(aTHX)
22682269
# define thread_locale_term() Perl_thread_locale_term(aTHX)
22692270
# else
22702271
# define Perl_sv_setsv sv_setsv
22712272
# define Perl_uv_to_utf8 uv_to_utf8
2273+
# define Perl_uv_to_utf8_flags uv_to_utf8_flags
22722274
# endif
22732275
# if defined(VMS) || defined(WIN32)
22742276
# define do_aspawn(a,b,c) Perl_do_aspawn(aTHX_ a,b,c)

inline.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3272,11 +3272,6 @@ Perl_utf8_to_uvchr_buf(pTHX_ const U8 *s, const U8 *send, STRLEN *retlen)
32723272
return 0;
32733273
}
32743274

3275-
PERL_STATIC_INLINE U8 *
3276-
Perl_uv_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags)
3277-
{
3278-
return uv_to_utf8_msgs(d, uv, flags, 0);
3279-
}
32803275
PERL_STATIC_INLINE U8 *
32813276
Perl_uv_to_utf8_msgs(pTHX_ U8 *d, UV uv, UV flags , HV **msgs)
32823277
{

proto.h

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

0 commit comments

Comments
 (0)