summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-10-29 14:39:37 +0000
committerNicholas Clark <nick@ccl4.org>2005-10-29 14:39:37 +0000
commit174c73e345a053498d612e92802b2f52a87c26bc (patch)
tree229b40596acda4d59f5b62a8b8155fd76c5498a2 /mathoms.c
parente424a81e12752daec8332495577eb8122f350b31 (diff)
downloadperl-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.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/mathoms.c b/mathoms.c
index f165ba487b..04cff18a8f 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -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.