diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-10-29 14:39:37 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-10-29 14:39:37 +0000 |
commit | 174c73e345a053498d612e92802b2f52a87c26bc (patch) | |
tree | 229b40596acda4d59f5b62a8b8155fd76c5498a2 /mathoms.c | |
parent | e424a81e12752daec8332495577eb8122f350b31 (diff) | |
download | perl-174c73e345a053498d612e92802b2f52a87c26bc.tar.gz |
Replace sv_unref with a macro that calls sv_unref_flags
p4raw-id: //depot/perl@25878
Diffstat (limited to 'mathoms.c')
-rw-r--r-- | mathoms.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -37,6 +37,23 @@ Perl_ref(pTHX_ OP *o, I32 type) } /* +=for apidoc sv_unref + +Unsets the RV status of the SV, and decrements the reference count of +whatever was being referenced by the RV. This can almost be thought of +as a reversal of C<newSVrv>. This is C<sv_unref_flags> with the C<flag> +being zero. See C<SvROK_off>. + +=cut +*/ + +void +Perl_sv_unref(pTHX_ SV *sv) +{ + sv_unref_flags(sv, 0); +} + +/* =for apidoc sv_taint Taint an SV. Use C<SvTAINTED_on> instead. |