# HG changeset patch # User Olaf Wintermann # Date 1325355029 -3600 # Node ID fe50a85e69e76916ca65d401beedd237f47df85f # Parent 4f6082f99bd7fef7f81af3e1a162c75a4369b722 Added list tests2 diff -r 4f6082f99bd7 -r fe50a85e69e7 test/list_tests.h --- a/test/list_tests.h Sat Dec 31 19:08:27 2011 +0100 +++ b/test/list_tests.h Sat Dec 31 19:10:29 2011 +0100 @@ -12,7 +12,8 @@ extern "C" { #endif -int list_tests(); +int dlist_tests(); +int list_tests();; #ifdef __cplusplus diff -r 4f6082f99bd7 -r fe50a85e69e7 test/main.c --- a/test/main.c Sat Dec 31 19:08:27 2011 +0100 +++ b/test/main.c Sat Dec 31 19:10:29 2011 +0100 @@ -34,6 +34,11 @@ int main(int argc, char **argv) { printf("UCX Tests\n---------\n\n"); + printf("UcxDlist Tests\n"); + if(dlist_tests()) { + fprintf(stderr, "list_tests failed\n"); + } + printf("UcxList Tests\n"); if(list_tests()) { fprintf(stderr, "list_tests failed\n"); } diff -r 4f6082f99bd7 -r fe50a85e69e7 ucx/list.h --- a/ucx/list.h Sat Dec 31 19:08:27 2011 +0100 +++ b/ucx/list.h Sat Dec 31 19:10:29 2011 +0100 @@ -18,6 +18,7 @@ UcxList *next; }; +void ucx_list_free(UcxList *l); UcxList *ucx_list_append(UcxList *l, void *data); UcxList *ucx_list_prepend(UcxList *l, void *data); UcxList *ucx_list_concat(UcxList *l1, UcxList *l2);