diff options
author | 2019-02-13 21:15:00 +0000 | |
---|---|---|
committer | 2019-02-13 21:15:00 +0000 | |
commit | 9f11ffb7133c203312a01e4b986886bc88c7d74b (patch) | |
tree | 6618511204c614b20256e4ef9dea39a7b311d638 /gnu/usr.bin/perl/dist/ExtUtils-ParseXS/lib/perlxstut.pod | |
parent | Import perl-5.28.1 (diff) | |
download | wireguard-openbsd-9f11ffb7133c203312a01e4b986886bc88c7d74b.tar.xz wireguard-openbsd-9f11ffb7133c203312a01e4b986886bc88c7d74b.zip |
Fix merge issues, remove excess files - match perl-5.28.1 dist
looking good sthen@, Great! bluhm@
Diffstat (limited to 'gnu/usr.bin/perl/dist/ExtUtils-ParseXS/lib/perlxstut.pod')
-rw-r--r-- | gnu/usr.bin/perl/dist/ExtUtils-ParseXS/lib/perlxstut.pod | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/perl/dist/ExtUtils-ParseXS/lib/perlxstut.pod b/gnu/usr.bin/perl/dist/ExtUtils-ParseXS/lib/perlxstut.pod index f8a74ddf7a7..ef154ad7311 100644 --- a/gnu/usr.bin/perl/dist/ExtUtils-ParseXS/lib/perlxstut.pod +++ b/gnu/usr.bin/perl/dist/ExtUtils-ParseXS/lib/perlxstut.pod @@ -1143,9 +1143,9 @@ Mytest.xs: hv_store(rh, "f_files", 7, newSVnv(buf.f_files), 0); hv_store(rh, "f_type", 6, newSVnv(buf.f_type), 0); - av_push(results, newRV((SV *)rh)); + av_push(results, newRV_inc((SV *)rh)); } - RETVAL = newRV((SV *)results); + RETVAL = newRV_inc((SV *)results); OUTPUT: RETVAL @@ -1216,7 +1216,7 @@ for details. =item * -To create a reference, we use the C<newRV> function. Note that you can +To create a reference, we use the C<newRV_inc> function. Note that you can cast an AV* or an HV* to type SV* in this case (and many others). This allows you to take references to arrays, hashes and scalars with the same function. Conversely, the C<SvRV> function always returns an SV*, which may |