8 Commits

Author SHA1 Message Date
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
cace7471f0 tests: remove compiler warnings about unused parameters 2015-03-06 19:24:24 +01:00
Sébastien Helleu
3eb6cd3cd9 tests: remove unused variables 2015-03-03 07:43:23 +01:00
Sébastien Helleu
a020c28ea6 core: update copyright dates 2015-01-01 09:23:23 +01: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
dda1a66fd7 tests: add tests of arraylist functions 2014-09-01 11:51:04 +02:00