mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Framework to simplify memory leak tracing
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user