summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-09-05 21:55:34 -0600
committerKarl Williamson <khw@cpan.org>2020-11-21 11:44:18 -0700
commit73d434eae8af19f8e3477952dc0351abe0c561a7 (patch)
treec1cf7c1ddd81f949d50175b3f808773b0693e33f /sv.c
parentcf203d64fd185f0c9039718e9c00b3e723a3afe3 (diff)
downloadperl-73d434eae8af19f8e3477952dc0351abe0c561a7.tar.gz
perlapi: Consolidate sv_setpviv-ish entries
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/sv.c b/sv.c
index 026d3ccaa0..507df88829 100644
--- a/sv.c
+++ b/sv.c
@@ -10672,9 +10672,12 @@ Perl_sv_tainted(pTHX_ SV *const sv)
/*
=for apidoc sv_setpviv
+=for apidoc_item sv_setpviv_mg
-Copies an integer into the given SV, also updating its string value.
-Does not handle 'set' magic. See C<L</sv_setpviv_mg>>.
+These copy an integer into the given SV, also updating its string value.
+
+They differ only in that C<sv_setpviv_mg> performs 'set' magic; C<sv_setpviv>
+skips any magic.
=cut
*/
@@ -10696,14 +10699,6 @@ Perl_sv_setpviv(pTHX_ SV *const sv, const IV iv)
sv_setpvn(sv, ptr, ebuf - ptr);
}
-/*
-=for apidoc sv_setpviv_mg
-
-Like C<sv_setpviv>, but also handles 'set' magic.
-
-=cut
-*/
-
void
Perl_sv_setpviv_mg(pTHX_ SV *const sv, const IV iv)
{