# HG changeset patch # User Olaf Wintermann # Date 1325351068 -3600 # Node ID 50b5fe7c577f4587bfbfcc33c426a2b5dd0a8b19 # Parent a1740117e2b715ede26aae72f3f5b1766997db60 Fixed fatal super bug diff -r a1740117e2b7 -r 50b5fe7c577f ucx/list.h --- a/ucx/list.h Sat Dec 31 17:54:52 2011 +0100 +++ b/ucx/list.h Sat Dec 31 18:04:28 2011 +0100 @@ -5,6 +5,9 @@ #ifndef LIST_H #define LIST_H +#include "ucx.h" +#include + #ifdef __cplusplus extern "C" { #endif @@ -15,12 +18,13 @@ UcxList *next; }; -UcxList *ucx_dlist_append(UcxList *l, void *data); -UcxList *ucx_dlist_prepend(UcxList *l, void *data); -UcxList *ucx_dlist_concat(UcxList *l1, UcxDlist *l2); -UcxList *ucx_dlist_last(UcxList *l); -UcxList *ucx_dlist_get(UcxList *l, int index); -size_t *ucx_dlist_size(UcxList *l); +UcxList *ucx_list_append(UcxList *l, void *data); +UcxList *ucx_list_prepend(UcxList *l, void *data); +UcxList *ucx_list_concat(UcxList *l1, UcxDlist *l2); +UcxList *ucx_list_last(UcxList *l); +UcxList *ucx_list_get(UcxList *l, int index); +size_t ucx_list_size(UcxList *l); +void ucx_list_foreach(UcxList *l, ucx_callback fnc, void *data); #ifdef __cplusplus