27 */ |
27 */ |
28 |
28 |
29 #ifndef UCX_LINKED_LIST_H |
29 #ifndef UCX_LINKED_LIST_H |
30 #define UCX_LINKED_LIST_H |
30 #define UCX_LINKED_LIST_H |
31 |
31 |
|
32 #include <stddef.h> |
32 #include "list.h" |
33 #include "list.h" |
33 |
34 |
34 void *cx_linked_list_last(void **begin, void **end, off_t loc_next); |
35 void *cx_linked_list_last(void **begin, void **end, ptrdiff_t loc_next); |
35 |
36 |
36 int cx_linked_list_add(void **begin, void **end, off_t loc_next, off_t loc_prev, void *newnode); |
37 int cx_linked_list_add(void **begin, void **end, ptrdiff_t loc_next, ptrdiff_t loc_prev, void *newnode); |
37 |
38 |
38 CxList cxLinkedListCreate(CxAllocator allocator, CxListComparator comparator); |
39 CxList cxLinkedListCreate(CxAllocator allocator, CxListComparator comparator); |
39 |
40 |
40 extern cx_list_class cx_linked_list_class; |
41 extern cx_list_class cx_linked_list_class; |
41 |
42 |