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:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user