summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-09-05 12:13:50 -0600
committerKarl Williamson <khw@cpan.org>2020-09-07 09:16:21 -0600
commitb440465d5a4b3b04a3503d257418cf65ade0cbdb (patch)
tree2ff1b1c90fa653b65b92a25a68dc244a230f3172
parent54ba56f3463802a0b3e45555ef68fc96524620a3 (diff)
downloadperl-b440465d5a4b3b04a3503d257418cf65ade0cbdb.tar.gz
perlapi: Consolidate sv_set[inu]v-ish entries
-rw-r--r--sv.c46
1 files changed, 16 insertions, 30 deletions
diff --git a/sv.c b/sv.c
index 022143f8a4..0ed9d064cc 100644
--- a/sv.c
+++ b/sv.c
@@ -1627,9 +1627,12 @@ Perl_sv_grow(pTHX_ SV *const sv, STRLEN newlen)
/*
=for apidoc sv_setiv
+=for apidoc_item sv_setiv_mg
-Copies an integer into the given SV, upgrading first if necessary.
-Does not handle 'set' magic. See also C<L</sv_setiv_mg>>.
+These copy an integer into the given SV, upgrading first if necessary.
+
+They differ only in that C<sv_setiv_mg> handles 'set' magic; C<sv_setiv> does
+not.
=cut
*/
@@ -1670,14 +1673,6 @@ Perl_sv_setiv(pTHX_ SV *const sv, const IV i)
SvTAINT(sv);
}
-/*
-=for apidoc sv_setiv_mg
-
-Like C<sv_setiv>, but also handles 'set' magic.
-
-=cut
-*/
-
void
Perl_sv_setiv_mg(pTHX_ SV *const sv, const IV i)
{
@@ -1689,9 +1684,13 @@ Perl_sv_setiv_mg(pTHX_ SV *const sv, const IV i)
/*
=for apidoc sv_setuv
+=for apidoc_item sv_setuv_mg
+
+These copy an unsigned integer into the given SV, upgrading first if necessary.
+
-Copies an unsigned integer into the given SV, upgrading first if necessary.
-Does not handle 'set' magic. See also C<L</sv_setuv_mg>>.
+They differ only in that C<sv_setuv_mg> handles 'set' magic; C<sv_setuv> does
+not.
=cut
*/
@@ -1721,14 +1720,6 @@ Perl_sv_setuv(pTHX_ SV *const sv, const UV u)
SvUV_set(sv, u);
}
-/*
-=for apidoc sv_setuv_mg
-
-Like C<sv_setuv>, but also handles 'set' magic.
-
-=cut
-*/
-
void
Perl_sv_setuv_mg(pTHX_ SV *const sv, const UV u)
{
@@ -1740,9 +1731,12 @@ Perl_sv_setuv_mg(pTHX_ SV *const sv, const UV u)
/*
=for apidoc sv_setnv
+=for apidoc_item sv_setnv_mg
+
+These copy a double into the given SV, upgrading first if necessary.
-Copies a double into the given SV, upgrading first if necessary.
-Does not handle 'set' magic. See also C<L</sv_setnv_mg>>.
+They differ only in that C<sv_setnv_mg> handles 'set' magic; C<sv_setnv> does
+not.
=cut
*/
@@ -1784,14 +1778,6 @@ Perl_sv_setnv(pTHX_ SV *const sv, const NV num)
SvTAINT(sv);
}
-/*
-=for apidoc sv_setnv_mg
-
-Like C<sv_setnv>, but also handles 'set' magic.
-
-=cut
-*/
-
void
Perl_sv_setnv_mg(pTHX_ SV *const sv, const NV num)
{