From 5525f618c2c1a63c2dda73c80674486052a77d76 Mon Sep 17 00:00:00 2001 From: Reini Urban Date: Sun, 12 Feb 2017 11:00:22 +0100 Subject: [PATCH] mro: sv_sethek is now visible to core extensions needed for ext/mro. --- embed.fnc | 2 +- embed.h | 2 +- sv.c | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/embed.fnc b/embed.fnc index 8a097f3e538..6194927ca28 100644 --- a/embed.fnc +++ b/embed.fnc @@ -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 diff --git a/embed.h b/embed.h index f5031a2a6cf..45339d7059f 100644 --- a/embed.h +++ b/embed.h @@ -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) @@ -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 diff --git a/sv.c b/sv.c index e444386b582..2b7b762f226 100644 --- a/sv.c +++ b/sv.c @@ -5067,12 +5067,9 @@ Perl_sv_setpv(pTHX_ SV *const sv, const char *const ptr) /* =for apidoc sv_setpv_mg - Like C, but also handles 'set' magic. - =cut */ - void Perl_sv_setpv_mg(pTHX_ SV *const sv, const char *const ptr) { @@ -5082,6 +5079,11 @@ Perl_sv_setpv_mg(pTHX_ SV *const sv, const char *const ptr) SvSETMAGIC(sv); } +/* +=for apidoc sv_sethek +Like C for PVs, but takes the string value from the hek. +=cut +*/ void Perl_sv_sethek(pTHX_ SV *const sv, const HEK *const hek) {