1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 12:26:40 +02:00

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.
This commit is contained in:
Sébastien Helleu
2017-03-30 20:35:16 +02:00
parent 0436fff31b
commit 467f482ea6
6 changed files with 39 additions and 10 deletions
-2
View File
@@ -489,8 +489,6 @@ TEST(Arraylist, New)
arraylist_new (-1, 0, 0, NULL, NULL, NULL, NULL));
POINTERS_EQUAL(NULL,
arraylist_new (-1, 0, 0, &test_cmp_cb, NULL, NULL, NULL));
POINTERS_EQUAL(NULL,
arraylist_new (0, 0, 0, NULL, NULL, NULL, NULL));
/* tests on arraylists */
for (initial_size = 0; initial_size < 2; initial_size++)