diff options
author | Karl Williamson <khw@cpan.org> | 2020-09-05 12:13:50 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-09-07 09:16:21 -0600 |
commit | b440465d5a4b3b04a3503d257418cf65ade0cbdb (patch) | |
tree | 2ff1b1c90fa653b65b92a25a68dc244a230f3172 | |
parent | 54ba56f3463802a0b3e45555ef68fc96524620a3 (diff) | |
download | perl-b440465d5a4b3b04a3503d257418cf65ade0cbdb.tar.gz |
perlapi: Consolidate sv_set[inu]v-ish entries
-rw-r--r-- | sv.c | 46 |
1 files changed, 16 insertions, 30 deletions
@@ -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) { |