diff options
author | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2009-08-10 07:36:54 +0000 |
---|---|---|
committer | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2009-08-10 07:36:54 +0000 |
commit | b965efb4990bdedc3215ffcca8ea566d25874d26 (patch) | |
tree | 3e366e9151ce4c17a8d2b235abaab4b71df46563 /include/pub_tool_hashtable.h | |
parent | c2f8b1bddf3495c55f77cc6b556e0dd3b5d723d6 (diff) | |
download | valgrind-b965efb4990bdedc3215ffcca8ea566d25874d26.tar.gz |
Allow custom blocks to overlap with malloc blocks. Fixes bug 100628.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10765 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'include/pub_tool_hashtable.h')
-rw-r--r-- | include/pub_tool_hashtable.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/pub_tool_hashtable.h b/include/pub_tool_hashtable.h index b3de21681..4c83cf95d 100644 --- a/include/pub_tool_hashtable.h +++ b/include/pub_tool_hashtable.h @@ -58,10 +58,12 @@ extern VgHashTable VG_(HT_construct) ( HChar* name ); /* Count the number of nodes in a table. */ extern Int VG_(HT_count_nodes) ( VgHashTable table ); -/* Add a node to the table. */ +/* Add a node to the table. Duplicate keys are permitted. */ extern void VG_(HT_add_node) ( VgHashTable t, void* node ); -/* Looks up a VgHashNode in the table. Returns NULL if not found. */ +/* Looks up a VgHashNode in the table. Returns NULL if not found. If entries + * with duplicate keys are present, the most recently-added of the dups will + * be returned, but it's probably better to avoid dups altogether. */ extern void* VG_(HT_lookup) ( VgHashTable table, UWord key ); /* Removes a VgHashNode from the table. Returns NULL if not found. */ |