summaryrefslogtreecommitdiff
path: root/include/hash.h
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-04-13 15:34:39 +0300
committermonty@hundin.mysql.fi <>2002-04-13 15:34:39 +0300
commitb5a145d87290aad611c3aa71e5e9a736d467ec5a (patch)
tree6bb12842fb04d64fa854f04ec3d07da1e1f7c48b /include/hash.h
parente5866a7a316869d06677babdd45a62dfe6026db1 (diff)
parentee737d2fc2b2a1ec64e54146c986f2535314ae4e (diff)
downloadmariadb-git-b5a145d87290aad611c3aa71e5e9a736d467ec5a.tar.gz
merge
Diffstat (limited to 'include/hash.h')
-rw-r--r--include/hash.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/hash.h b/include/hash.h
index e9c8c73c05b..a4afe03fb59 100644
--- a/include/hash.h
+++ b/include/hash.h
@@ -40,13 +40,15 @@ typedef struct st_hash {
DYNAMIC_ARRAY array; /* Place for hash_keys */
hash_get_key get_key;
void (*free)(void *);
- uint (*calc_hashnr)(const byte *key,uint length);
+ uint (*calc_hashnr)(CHARSET_INFO *cs, const byte *key,uint length);
+ CHARSET_INFO *charset;
} HASH;
-#define hash_init(A,B,C,D,E,F,G) _hash_init(A,B,C,D,E,F,G CALLER_INFO)
-my_bool _hash_init(HASH *hash,uint default_array_elements, uint key_offset,
- uint key_length, hash_get_key get_key,
- void (*free_element)(void*), uint flags CALLER_INFO_PROTO);
+#define hash_init(A,B,C,D,E,F,G) _hash_init(A,B,C,D,E,F,G, H CALLER_INFO)
+my_bool _hash_init(HASH *hash, CHARSET_INFO *charset,
+ uint default_array_elements, uint key_offset,
+ uint key_length, hash_get_key get_key,
+ void (*free_element)(void*), uint flags CALLER_INFO_PROTO);
void hash_free(HASH *tree);
byte *hash_element(HASH *hash,uint idx);
gptr hash_search(HASH *info,const byte *key,uint length);