summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-10-30 16:24:37 +0000
committerNicholas Clark <nick@ccl4.org>2005-10-30 16:24:37 +0000
commitbc5cdc23883e8a43c7fbf40a0069d823caa8adb3 (patch)
tree1dd3cfd55e81f52d08d0f2d0474d78fe15f06063 /mathoms.c
parent711aba4c46216686b303e46f6e8b7dfac7b2420f (diff)
downloadperl-bc5cdc23883e8a43c7fbf40a0069d823caa8adb3.tar.gz
Replace hv_magic() with a macro to call sv_magic() directly. Move the
old body to mathoms.c p4raw-id: //depot/perl@25897
Diffstat (limited to 'mathoms.c')
-rw-r--r--mathoms.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/mathoms.c b/mathoms.c
index ce7a49e0d4..c62ab37782 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -601,6 +601,22 @@ Perl_hv_iternext(pTHX_ HV *hv)
return hv_iternext_flags(hv, 0);
}
+void
+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
+
AV *
Perl_av_fake(pTHX_ register I32 size, register SV **strp)
{