summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-11 18:01:32 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-11 18:01:32 +0000
commit97ddebaf393a19fb80bf52b8fdb8330e1c4a591b (patch)
tree34277cb382f61b77a4f4308ac3c9b4c2f6b8488b
parentbdd68bc304bfb15597167600a71a074fd0478307 (diff)
downloadperl-97ddebaf393a19fb80bf52b8fdb8330e1c4a591b.tar.gz
hash key code cleanup
p4raw-id: //depot/perl@24803
-rw-r--r--embed.fnc2
-rw-r--r--hv.c2
-rw-r--r--hv.h2
-rw-r--r--proto.h2
4 files changed, 3 insertions, 5 deletions
diff --git a/embed.fnc b/embed.fnc
index 7d51db5dc5..b40a204166 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -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
diff --git a/hv.c b/hv.c
index 2b00650fe7..556996e8c0 100644
--- a/hv.c
+++ b/hv.c
@@ -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;
diff --git a/hv.h b/hv.h
index a8f9b80ce0..3115dba91c 100644
--- a/hv.h
+++ b/hv.h
@@ -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 {
diff --git a/proto.h b/proto.h
index 2f5918abec..779457d8ed 100644
--- a/proto.h
+++ b/proto.h
@@ -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__;