summaryrefslogtreecommitdiff
path: root/src/core/wee-hashtable.c
AgeCommit message (Collapse)Author
2014-08-11core: callback_free_key shouldn't point to already free'd valueAndrew Potter
2014-08-10core: fix zero-length malloc of an hashtable item with type "buffer"Sébastien Helleu
2014-08-02core: fix result of hash function (in hashtables) on 32-bit systemsSébastien Helleu
2014-01-01core: update copyright datesSebastien Helleu
2013-08-10core: change type of hashtable key hash to unsigned long, return item ↵Sebastien Helleu
pointer in functions hashtable_set(_with_size) The key hash has been changed from unsigned int to unsigned long, and now the callback can return any value (not only between 0 and size-1), the modulo is computed after the call to the callback by the hashtable functions. Functions hashtable_set and hashtable_set_with_size were returning 1 if OK, 0 if error. Now they return pointer to hashtable item, or NULL if error.
2013-08-09core: check that value is not NULL before calling free in hashtable_free_valueSebastien Helleu
2013-08-09core: add "callback_free_key" in hashtableSebastien Helleu
2013-03-07api: allow hashtable with keys that are not strings in function ↵Sebastien Helleu
hashtable_add_to_infolist
2013-01-26core: use default hash/comparison callback for keys of type ↵Sebastien Helleu
integer/pointer/time in hashtable
2013-01-01core: update copyright datesSebastien Helleu
2012-12-15core: move comments with description of C file to top of filesSebastien Helleu
2012-12-13core: reformat comments for functionsSebastien Helleu
2012-08-05core: fix crash if key of hashtable_get(_item) is NULL (just return NULL)Sebastien Helleu
2012-01-08core: update copyright datesSebastien Helleu
2011-12-19core: add type "hashtable" for hdata, new api functions: hdata_hashtable and ↵Sebastien Helleu
hashtable_map_string
2011-10-26core: remove unneeded whitespaceSebastien Helleu
2011-08-13core: add function hashtable_dup (duplicate a hashtable)Sebastien Helleu
2011-08-01core: add info about position where mouse button is released in hook_focus ↵Sebastien Helleu
(for mouse gestures)
2011-07-30core: fix crash when building hashtable string with keys and valuesSebastien Helleu
2011-06-13core: add string representation for types pointer, buffer and time in ↵Sebastien Helleu
properties "keys", "values" and "keys_values"
2011-03-15Allow removal of hashtable entry in callback of hashtable_mapSebastien Helleu
2011-01-02Add function "hashtable_set_pointer" in plugin APISebastien Helleu
2011-01-01Update copyright datesSebastien Helleu
2010-10-17Use const void * for keys and values in some hashtable functionsSebastien Helleu
2010-10-16Fix crash in hashtable_get_string with "values" or "keys_values" when some ↵Sebastien Helleu
values in hashtable are NULL
2010-10-15Add properties "values" and "keys_values" for hashtable_get_string (return ↵Sebastien Helleu
string with list of values or keys/values)
2010-10-11Add function "hashtable_has_key" in WeeChat and plugin APISebastien Helleu
2010-10-10Add property "keys" for hashtable_get_string (return string with list of keys)Sebastien Helleu
2010-10-10Allow null value for hashtable entriesSebastien Helleu
2010-09-27Fix memory leak when removing item in hashtableSebastien Helleu
2010-08-27Add new functions in plugin API (hashtable_get_string, hook_info_hashtable, ↵Sebastien Helleu
info_get_hashtable), add IRC info_hashtable "irc_parse_message" Note: tcl >= 8.5 is now required (for tcl plugin).
2010-07-05Use of hashtable for local variables of buffersSebastien Helleu
2010-06-28Add hashtable in core and plugin APISebastien Helleu