summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorChip Salzenberg <chip@pobox.com>2010-10-14 17:50:10 -0700
committerChip Salzenberg <chip@pobox.com>2010-10-14 17:50:10 -0700
commit3025a2e42cd703f48878ec60605f8960d5732efb (patch)
treeffcdfcd804cae539ba252a63e49449b2eb132c1e /hv.c
parent582bd8796b98142a11f99996b4e934a363b2cac0 (diff)
downloadperl-3025a2e42cd703f48878ec60605f8960d5732efb.tar.gz
Document that av_delete and hv_delete make their return values mortal.
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/hv.c b/hv.c
index 5482306a5f..591865f709 100644
--- a/hv.c
+++ b/hv.c
@@ -879,17 +879,18 @@ Perl_hv_scalar(pTHX_ HV *hv)
/*
=for apidoc hv_delete
-Deletes a key/value pair in the hash. The value SV is removed from the
-hash and returned to the caller. The C<klen> is the length of the key.
-The C<flags> value will normally be zero; if set to G_DISCARD then NULL
-will be returned.
+Deletes a key/value pair in the hash. The value's SV is removed from the
+hash, made mortal, and returned to the caller. The C<klen> is the length of
+the key. The C<flags> value will normally be zero; if set to G_DISCARD then
+NULL will be returned. NULL will also be returned if the key is not found.
=for apidoc hv_delete_ent
-Deletes a key/value pair in the hash. The value SV is removed from the
-hash and returned to the caller. The C<flags> value will normally be zero;
-if set to G_DISCARD then NULL will be returned. C<hash> can be a valid
-precomputed hash value, or 0 to ask for it to be computed.
+Deletes a key/value pair in the hash. The value SV is removed from the hash,
+made mortal, and returned to the caller. The C<flags> value will normally be
+zero; if set to G_DISCARD then NULL will be returned. NULL will also be
+returned if the key is not found. C<hash> can be a valid precomputed hash
+value, or 0 to ask for it to be computed.
=cut
*/