Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
mro: sv_sethek is now visible to core extensions
Browse files Browse the repository at this point in the history
needed for ext/mro.
  • Loading branch information
rurban committed Jul 2, 2019
1 parent 071f7ab commit 5525f61
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion embed.fnc
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,7 @@ Apd |SV* |sv_setref_pvn |NN SV *const rv|NULLOK const char *const classname \
Apd |void |sv_setpv |NN SV *const sv|NULLOK const char *const ptr
Apd |void |sv_setpvn |NN SV *const sv|NULLOK const char *const ptr|const STRLEN len
Apd |char *|sv_setpv_bufsize|NN SV *const sv|const STRLEN cur|const STRLEN len
Xp |void |sv_sethek |NN SV *const sv|NULLOK const HEK *const hek
EXpd |void |sv_sethek |NN SV *const sv|NULLOK const HEK *const hek
Apmdb |void |sv_setsv |NN SV *dstr|NULLOK SV *sstr
Apmdb |void |sv_taint |NN SV* sv
ApdR |bool |sv_tainted |NN SV *const sv
Expand Down
2 changes: 1 addition & 1 deletion embed.h
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,7 @@
#define skipspace_flags(a,b) Perl_skipspace_flags(aTHX_ a,b)
#define sv_magicext_mglob(a) Perl_sv_magicext_mglob(aTHX_ a)
#define sv_only_taint_gmagic S_sv_only_taint_gmagic
#define sv_sethek(a,b) Perl_sv_sethek(aTHX_ a,b)
#define swash_fetch(a,b,c) Perl_swash_fetch(aTHX_ a,b,c)
#define swash_init(a,b,c,d,e) Perl_swash_init(aTHX_ a,b,c,d,e)
#define vivify_defelem(a) Perl_vivify_defelem(aTHX_ a)
Expand Down Expand Up @@ -1677,7 +1678,6 @@
#define sv_len_utf8_nomg(a) Perl_sv_len_utf8_nomg(aTHX_ a)
#define sv_mortalcopy_flags(a,b) Perl_sv_mortalcopy_flags(aTHX_ a,b)
#define sv_resetpvn(a,b,c) Perl_sv_resetpvn(aTHX_ a,b,c)
#define sv_sethek(a,b) Perl_sv_sethek(aTHX_ a,b)
#ifndef PERL_IMPLICIT_CONTEXT
#define tied_method Perl_tied_method
#endif
Expand Down
8 changes: 5 additions & 3 deletions sv.c
Original file line number Diff line number Diff line change
Expand Up @@ -5067,12 +5067,9 @@ Perl_sv_setpv(pTHX_ SV *const sv, const char *const ptr)

/*
=for apidoc sv_setpv_mg
Like C<sv_setpv>, but also handles 'set' magic.
=cut
*/

void
Perl_sv_setpv_mg(pTHX_ SV *const sv, const char *const ptr)
{
Expand All @@ -5082,6 +5079,11 @@ Perl_sv_setpv_mg(pTHX_ SV *const sv, const char *const ptr)
SvSETMAGIC(sv);
}

/*
=for apidoc sv_sethek
Like C<sv_setsv> for PVs, but takes the string value from the hek.
=cut
*/
void
Perl_sv_sethek(pTHX_ SV *const sv, const HEK *const hek)
{
Expand Down

0 comments on commit 5525f61

Please sign in to comment.