diff options
author | Karl Williamson <khw@cpan.org> | 2020-09-05 21:55:34 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-11-21 11:44:18 -0700 |
commit | 73d434eae8af19f8e3477952dc0351abe0c561a7 (patch) | |
tree | c1cf7c1ddd81f949d50175b3f808773b0693e33f /sv.c | |
parent | cf203d64fd185f0c9039718e9c00b3e723a3afe3 (diff) | |
download | perl-73d434eae8af19f8e3477952dc0351abe0c561a7.tar.gz |
perlapi: Consolidate sv_setpviv-ish entries
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -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) { |