summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2001-07-31 12:52:42 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-31 15:19:01 +0000
commitd4236ebc0e9fe139413a771b6865f122276a736a (patch)
tree671e40136a626dff966f492a66618a00d343b373 /sv.c
parent9cd42e2a9501115f9082a62408fd7cd43dd6b6f0 (diff)
downloadperl-d4236ebc0e9fe139413a771b6865f122276a736a.tar.gz
Re: [PATCH sv.c] mortal doc thinko
Message-Id: <200107311052.LAA14427@gizmo.fdgroup.co.uk> p4raw-id: //depot/perl@11521
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/sv.c b/sv.c
index f74adea79b..b8468a51ea 100644
--- a/sv.c
+++ b/sv.c
@@ -6050,8 +6050,9 @@ Perl_sv_dec(pTHX_ register SV *sv)
=for apidoc sv_mortalcopy
Creates a new SV which is a copy of the original SV (using C<sv_setsv>).
-The new SV is marked as mortal. It will be destroyed when the current
-context ends. See also C<sv_newmortal> and C<sv_2mortal>.
+The new SV is marked as mortal. It will be destroyed "soon", either by an
+explicit call to FREETMPS, or by an implicit call at places such as
+statement boundaries. See also C<sv_newmortal> and C<sv_2mortal>.
=cut
*/
@@ -6078,8 +6079,9 @@ Perl_sv_mortalcopy(pTHX_ SV *oldstr)
=for apidoc sv_newmortal
Creates a new null SV which is mortal. The reference count of the SV is
-set to 1. It will be destroyed when the current context ends. See
-also C<sv_mortalcopy> and C<sv_2mortal>.
+set to 1. It will be destroyed "soon", either by an explicit call to
+FREETMPS, or by an implicit call at places such as statement boundaries.
+See also C<sv_mortalcopy> and C<sv_2mortal>.
=cut
*/
@@ -6099,8 +6101,9 @@ Perl_sv_newmortal(pTHX)
/*
=for apidoc sv_2mortal
-Marks an existing SV as mortal. The SV will be destroyed when the current
-context ends. See also C<sv_newmortal> and C<sv_mortalcopy>.
+Marks an existing SV as mortal. The SV will be destroyed "soon", either
+by an explicit call to FREETMPS, or by an implicit call at places such as
+statement boundaries. See also C<sv_newmortal> and C<sv_mortalcopy>.
=cut
*/