summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-12-03 14:03:21 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-03 14:03:21 +0000
commit80ade3f3b5a18972a924a6f948a21755a866241b (patch)
tree9d91732a3de4ca4db934c7078ca8a6f4f34c928d /hv.c
parent9d9a76d8359d151f0972ff45e17bcd41d27cc3d4 (diff)
downloadperl-80ade3f3b5a18972a924a6f948a21755a866241b.tar.gz
Make sharepvn a macro since all it does is a deref.
p4raw-id: //depot/perl@13436
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hv.c b/hv.c
index 11992f4572..5d7b49fb74 100644
--- a/hv.c
+++ b/hv.c
@@ -1640,12 +1640,16 @@ Perl_hv_magic(pTHX_ HV *hv, GV *gv, int how)
sv_magic((SV*)hv, (SV*)gv, how, Nullch, 0);
}
+#if 0 /* use the macro from hv.h instead */
+
char*
Perl_sharepvn(pTHX_ const char *sv, I32 len, U32 hash)
{
return HEK_KEY(share_hek(sv, len, hash));
}
+#endif
+
/* possibly free a shared string if no one has access to it
* len and hash must both be valid for str.
*/