diff options
author | Bruno Haible <bruno@clisp.org> | 2007-03-16 00:30:06 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-03-16 00:30:06 +0000 |
commit | e062ed7a99ca4e88a93db19362800a3326a462ea (patch) | |
tree | 222ea11a3a469b7bc11a9408bcb51e30cbf16f42 /tests/test-linked_list.c | |
parent | 814d96015643834fadd0980254ad0b7ece8266be (diff) | |
download | gnulib-e062ed7a99ca4e88a93db19362800a3326a462ea.tar.gz |
Allow the use of a destructor for the values stored in the list.
Diffstat (limited to 'tests/test-linked_list.c')
-rw-r--r-- | tests/test-linked_list.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-linked_list.c b/tests/test-linked_list.c index bf5ed4b0b9..059b2eef6e 100644 --- a/tests/test-linked_list.c +++ b/tests/test-linked_list.c @@ -79,15 +79,15 @@ main (int argc, char *argv[]) contents[i] = RANDOM_OBJECT (); /* Create list1. */ - list1 = gl_list_create (GL_ARRAY_LIST, NULL, NULL, true, + list1 = gl_list_create (GL_ARRAY_LIST, NULL, NULL, NULL, true, initial_size, contents); /* Create list2. */ - list2 = gl_list_create_empty (GL_LINKED_LIST, NULL, NULL, true); + list2 = gl_list_create_empty (GL_LINKED_LIST, NULL, NULL, NULL, true); for (i = 0; i < initial_size; i++) gl_list_add_last (list2, contents[i]); /* Create list3. */ - list3 = gl_list_create (GL_LINKED_LIST, NULL, NULL, true, + list3 = gl_list_create (GL_LINKED_LIST, NULL, NULL, NULL, true, initial_size, contents); check_all (list1, list2, list3); |