diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-10-30 16:24:37 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-10-30 16:24:37 +0000 |
commit | bc5cdc23883e8a43c7fbf40a0069d823caa8adb3 (patch) | |
tree | 1dd3cfd55e81f52d08d0f2d0474d78fe15f06063 /hv.c | |
parent | 711aba4c46216686b303e46f6e8b7dfac7b2420f (diff) | |
download | perl-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 'hv.c')
-rw-r--r-- | hv.c | 19 |
1 files changed, 3 insertions, 16 deletions
@@ -2123,6 +2123,9 @@ Perl_hv_iternextsv(pTHX_ HV *hv, char **key, I32 *retlen) } /* + +Now a macro in hv.h + =for apidoc hv_magic Adds magic to a hash. See C<sv_magic>. @@ -2130,22 +2133,6 @@ Adds magic to a hash. See C<sv_magic>. =cut */ -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 - /* possibly free a shared string if no one has access to it * len and hash must both be valid for str. */ |