index
:
~anholt/hash_table
cworth-with-warnings
master
Open-addressing, linear probing hash table code for reuse in various projects.
anholt
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
hash_table.c
Age
Commit message (
Expand
)
Author
Files
Lines
2017-12-01
Add asserts that the user doesn't try to add the empty or deleted values.
Eric Anholt
1
-0
/
+8
2016-03-02
Do a full search when adding new items
Jason Ekstrand
1
-8
/
+18
2013-10-25
Teach the hash table itself to know its own hash function
Carl Worth
1
-8
/
+40
2013-10-25
Add new convenience function 'remove' (renaming former to 'remove_entry')
Carl Worth
1
-1
/
+19
2012-11-06
Add a note why hash_table_random_entry() may be of use.
Eric Anholt
1
-0
/
+8
2012-11-06
Clarify the loop end conditions.
Eric Anholt
1
-6
/
+7
2012-11-06
Make a few function args const.
Eric Anholt
1
-3
/
+3
2012-11-06
Make the deleted_key variables static const.
Eric Anholt
1
-2
/
+2
2012-10-18
Add C++ guards, in case you're importing this in some disaster C/C++ mix.
Eric Anholt
1
-4
/
+1
2012-10-18
Add a hash_table_foreach() macro.
Eric Anholt
1
-6
/
+2
2011-08-18
Make hash_table_remove(ht, NULL) do nothing instead of segfault.
Eric Anholt
1
-0
/
+3
2011-08-18
Add defined behavior for inserts with matching keys, and a test.
Eric Anholt
1
-0
/
+19
2011-08-18
Improve double hashing.
Eric Anholt
1
-6
/
+2
2010-01-19
Clean up the hash_table_destroy implementation.
Eric Anholt
1
-4
/
+2
2009-11-25
Fix the double hashing to be double hashing instead of linear probing.
Eric Anholt
1
-2
/
+13
2009-11-24
Prevent ht->entries from doubling when rehashing.
Eric Anholt
1
-0
/
+1
2009-11-24
Fix destroy_callback test.
Eric Anholt
1
-1
/
+3
2009-11-23
Fix valgrind complaints, including leaking the table data!
Eric Anholt
1
-1
/
+2
2009-11-23
Add deleted entry management by rehashing on insert when appropriate.
Eric Anholt
1
-5
/
+29
2009-11-23
API change: pass the hash value in to search/lookup.
Eric Anholt
1
-10
/
+8
2009-11-23
Add an interface for choosing a random hash table entry with a predicate.
Eric Anholt
1
-0
/
+27
2009-11-23
Fix the insert_many test: implement resize, and fix operator typos.
Eric Anholt
1
-7
/
+36
2009-11-23
Add a new test for removal of keys from the ht, and fix up API naming.
Eric Anholt
1
-1
/
+1
2009-11-23
Fix segfault in insert_and_lookup test.
Eric Anholt
1
-0
/
+1
2009-11-23
Initial import of hash_table.
Eric Anholt
1
-0
/
+243