diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-11 18:01:32 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-11 18:01:32 +0000 |
commit | 97ddebaf393a19fb80bf52b8fdb8330e1c4a591b (patch) | |
tree | 34277cb382f61b77a4f4308ac3c9b4c2f6b8488b | |
parent | bdd68bc304bfb15597167600a71a074fd0478307 (diff) | |
download | perl-97ddebaf393a19fb80bf52b8fdb8330e1c4a591b.tar.gz |
hash key code cleanup
p4raw-id: //depot/perl@24803
-rw-r--r-- | embed.fnc | 2 | ||||
-rw-r--r-- | hv.c | 2 | ||||
-rw-r--r-- | hv.h | 2 | ||||
-rw-r--r-- | proto.h | 2 |
4 files changed, 3 insertions, 5 deletions
@@ -997,7 +997,7 @@ sR |HE* |new_he s |void |del_he |NN HE *p sR |HEK* |save_hek_flags |NN const char *str|I32 len|U32 hash|int flags s |void |hv_magic_check |NN HV *hv|NN bool *needs_copy|NN bool *needs_store -s |void |unshare_hek_or_pvn|HEK* hek|const char* str|I32 len|U32 hash +s |void |unshare_hek_or_pvn|const HEK* hek|const char* str|I32 len|U32 hash sR |HE* |share_hek_flags|const char* sv|I32 len|U32 hash|int flags rs |void |hv_notallowed |int flags|NN const char *key|I32 klen|NN const char *msg s |struct xpvhv_aux*|hv_auxinit|HV *hv @@ -2149,7 +2149,7 @@ Perl_unshare_hek(pTHX_ HEK *hek) are used. If so, len and hash must both be valid for str. */ STATIC void -S_unshare_hek_or_pvn(pTHX_ HEK *hek, const char *str, I32 len, U32 hash) +S_unshare_hek_or_pvn(pTHX_ const HEK *hek, const char *str, I32 len, U32 hash) { register XPVHV* xhv; register HE *entry; @@ -39,8 +39,6 @@ struct xpvhv_aux { I32 xhv_riter; /* current root of iterator */ }; -#define HV_AUX_SIZE STRUCT_OFFSET(struct xpvhv_aux, xhv_array) - /* hash structure: */ /* This structure must match the beginning of struct xpvmg in sv.h. */ struct xpvhv { @@ -1874,7 +1874,7 @@ STATIC void S_hv_magic_check(pTHX_ HV *hv, bool *needs_copy, bool *needs_store) __attribute__nonnull__(pTHX_2) __attribute__nonnull__(pTHX_3); -STATIC void S_unshare_hek_or_pvn(pTHX_ HEK* hek, const char* str, I32 len, U32 hash); +STATIC void S_unshare_hek_or_pvn(pTHX_ const HEK* hek, const char* str, I32 len, U32 hash); STATIC HE* S_share_hek_flags(pTHX_ const char* sv, I32 len, U32 hash, int flags) __attribute__warn_unused_result__; |