summaryrefslogtreecommitdiff
path: root/hv.h
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
commit37d85e3a91692e44e6e502b7d515335fd5f620d6 (patch)
tree9d91732a3de4ca4db934c7078ca8a6f4f34c928d /hv.h
parent76663d673931e4e37150bc8e1f2ecfb834961ba3 (diff)
downloadperl-37d85e3a91692e44e6e502b7d515335fd5f620d6.tar.gz
Make sharepvn a macro since all it does is a deref.
p4raw-id: //depot/perl@13436
Diffstat (limited to 'hv.h')
-rw-r--r--hv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hv.h b/hv.h
index 9d6be7fce9..3475c87238 100644
--- a/hv.h
+++ b/hv.h
@@ -197,3 +197,7 @@ C<SV*>.
? (size) * sizeof(HE*) \
: (size) * sizeof(HE*) * 2 - MALLOC_OVERHEAD)
#endif
+
+/* available as a function in hv.c */
+#define Perl_sharepvn(sv, len, hash) HEK_KEY(share_hek(sv, len, hash))
+#define sharepvn(sv, len, hash) Perl_sharepvn(sv, len, hash)