aboutsummaryrefslogtreecommitdiff
path: root/src/lib/hash.c
AgeCommit message (Expand)AuthorLines
2021-10-01lib: str_hash() - Ignore integer wrapping with ubsanTimo Sirainen-1/+2
2021-01-15lib: hash - Add assert to make sure hash table doesn't grow beyond UINT_MAX n...Timo Sirainen-0/+1
2020-10-22global: Disable undefined behaviour sanitization for select locationsAki Tuomi-3/+6
2020-10-22global: Fix negation with constants to match target typeAki Tuomi-1/+1
2019-01-14lib: hash_table_iterate_deinit(NULL) should be a no-opJosef 'Jeff' Sipek-0/+3
2019-01-14lib: hash_table_destroy(NULL) should be a no-opTimo Sirainen-0/+2
2018-01-01Updated copyright notices to include the year 2018.Stephan Bosch-1/+1
2017-08-14lib: Add strfastcase_hashAki Tuomi-0/+16
2017-01-17lib: Add asserts to make sure hash table isn't freed while it's frozen.Timo Sirainen-0/+8
2017-01-01Updated copyright notices to include the year 2017.Stephan Bosch-1/+1
2016-06-06global: Require comparisons to be strict boolean expressionsTimo Sirainen-3/+3
2016-06-03hash: refactor hash_table_insert_node() and its callers referenceBaofeng Wang-18/+25
2016-01-13global: freshen copyrightTimo Sirainen-1/+1
2015-01-05global: freshen copyrightPhil Carmody-1/+1
2014-06-12lib: Changed hash_table_remove() "key not found" panic to be in a macro itself.Timo Sirainen-3/+4
2014-02-04Updated copyright notices to include year 2014.Timo Sirainen-1/+1
2013-02-02Oops :) Update copyrights to 2013 without breaking all .c files.Timo Sirainen-1/+1
2013-02-02Updated copyright notices to include year 2013.Timo Sirainen-1/+1
2012-09-26Merged changes from v2.1 tree.Timo Sirainen-1/+1
2012-09-11Decrease minimum memory allocations.Timo Sirainen-1/+1
2012-08-20Reverted "support for non-pointers" part of the hash table API changes.Timo Sirainen-3/+3
2012-08-19Hash table API is now (mostly) type safe.Timo Sirainen-25/+49
2012-08-19hash_table_create(): Removed table_pool parameter.Timo Sirainen-9/+8
2012-06-27Try to avoid (void) casts by adding more ATTR_NOWARN_UNUSED_RESULT.Timo Sirainen-6/+6
2012-06-25Make sure we check all the functions' return values. Minor API changes to sim...Timo Sirainen-4/+4
2012-06-24Marked functions parameters that are allowed to be NULL. Some APIs were also ...Timo Sirainen-4/+2
2012-02-12Updated copyright notices to include year 2012.Timo Sirainen-1/+1
2011-08-12liblib: Added generic mem_hash()Timo Sirainen-0/+17
2011-03-04Updated copyright notices to include year 2011.Timo Sirainen-1/+1
2010-01-25Updated copyright notices to include year 2010.Timo Sirainen-1/+1
2009-01-06Updated copyright notices to include year 2009.Timo Sirainen-1/+1
2008-12-19Renamed hash_*() to hash_table_*() to avoid conflicts with OSX's strhash.hTimo Sirainen-59/+64
2008-11-19Minor code cleanup: Removed extra ';' characters.Timo Sirainen-1/+1
2008-09-01primes_closest(): Use exponentially growing primes.Timo Sirainen-1/+1
2008-01-01Updated copyright notices to include year 2008.Timo Sirainen-1/+1
2007-11-17Use likely() and unlikely() macros to make commonly checked error handlingTimo Sirainen-1/+1
2007-09-22Renamed hash_size() -> hash_count().Timo Sirainen-1/+1
2007-09-16Replaced my Copyright notices. The year range always ends with 2007 now.Timo Sirainen-1/+1
2007-09-16hash_destroy() and hash_iterate_deinit() now take ** pointer.Timo Sirainen-3/+6
2007-01-26Optimization: Hash compression didn't remove NULL nodes from roots.Timo Sirainen-6/+6
2006-08-26Initial hash table size was always 109 even though the initial_sizeTimo Sirainen-2/+0
2006-01-17size_t -> unsigned int. It's enough.Timo Sirainen-8/+8
2006-01-14deinit, unref, destroy, close, free, etc. functions now take a pointer toTimo Sirainen-1/+5
2006-01-13Added "bool" type and changed all ints that were used as booleans to bool.Timo Sirainen-8/+8
2005-09-25Added hash_copy() and added some constsTimo Sirainen-4/+20
2003-12-03bugfixTimo Sirainen-2/+1
2003-12-03cleanupTimo Sirainen-6/+6
2003-12-03Changed hash_foreach() to iterator.Timo Sirainen-21/+47
2003-08-27Removed most of the license comments from src/lib/*.c. It's just fine toTimo Sirainen-22/+1
2003-01-27Function typedefs now define them as functions, not function pointers.Timo Sirainen-4/+4