From f6ced470369099e3d837e661b59f9dc539ebde70 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sat, 26 Mar 2016 20:47:42 -0400 Subject: fix drop bug --- src/hash.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/hash.h') diff --git a/src/hash.h b/src/hash.h index 9ea3627..5a8b965 100644 --- a/src/hash.h +++ b/src/hash.h @@ -102,3 +102,12 @@ void *hash_dup(void*); /* sets the callback for when duplicating a data node */ void hash_setdupdata_cb(void*, void *(*cb)(void*)); + +struct hash_export_node { + unsigned hash; + void *last, *node, *next; +}; + +struct hash_export_node hash_get_internal_node(void *ptr, const void *key); + +void hash_del_internal_node(void *ptr, const struct hash_export_node *node); -- cgit v1.1