diff options
author | unknown <serg@serg.mysql.com> | 2002-01-22 15:59:32 +0000 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2002-01-22 15:59:32 +0000 |
commit | 4c7aeabfc5627024d190a96e3b0654f417011f5a (patch) | |
tree | b05b3a2c4056704e10c90355f4427a725f6c7ff0 /include/hash.h | |
parent | 0c57c750a84abb0f822a6fe8ed4ef051ce6105af (diff) | |
download | mariadb-git-4c7aeabfc5627024d190a96e3b0654f417011f5a.tar.gz |
Framework to simplify memory leak tracing
Diffstat (limited to 'include/hash.h')
-rw-r--r-- | include/hash.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/hash.h b/include/hash.h index c98b0851645..2f6a424fb3c 100644 --- a/include/hash.h +++ b/include/hash.h @@ -44,9 +44,10 @@ typedef struct st_hash { uint (*calc_hashnr)(const byte *key,uint length); } HASH; -my_bool hash_init(HASH *hash,uint default_array_elements, uint key_offset, +#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); + 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); |