1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00
Commit Graph

12 Commits

Author SHA1 Message Date
Sébastien Helleu c88d578d2d core: fix potential use of NULL pointer in function arraylist_clear 2017-05-22 11:29:12 +02:00
Sébastien Helleu 467f482ea6 core: make "callback_cmp" optional in call to function arraylist_new()
If no callback is given, a default callback is used, which just compares
pointers.
2017-03-30 20:35:16 +02:00
Sébastien Helleu 705d86e684 core: update copyright dates 2017-01-01 11:32:04 +01:00
Sébastien Helleu 3330724574 core: update copyright dates 2016-01-01 11:09:53 +01:00
Sébastien Helleu 6c6667dadd core: fix long lines 2015-08-11 21:23:10 +02:00
Sébastien Helleu a020c28ea6 core: update copyright dates 2015-01-01 09:23:23 +01:00
Sébastien Helleu 972bd26e5e core: call "callback_free" in functions arraylist_{remove|clear|free}
This fixes a memory leak in completions which are using this callback
to free words in the completion list.
2014-10-17 07:55:21 +02:00
Sébastien Helleu 2867996d1f core: fix search/insert of elements in sorted arraylist with duplicates
The pointer and index returned is now the first element found with the value
(with the lower index if there are many elements with same value).
And the index for insert is the last element with same value + 1
(the higher index + 1).
2014-10-11 15:47:09 +02:00
Sébastien Helleu 8430708fad core: add comment about argument "index" of function arraylist_search 2014-09-01 11:51:03 +02:00
Sébastien Helleu 41fd4cb254 core: reset data contents in function arraylist_clear if size_alloc_min > 0 2014-09-01 11:51:03 +02:00
Sébastien Helleu e0f2184987 core: add extra check on arraylist pointer in arraylist functions 2014-09-01 11:51:03 +02:00
Sébastien Helleu a4dfda9304 core: add functions to manage array lists 2014-09-01 11:51:03 +02:00