36 |
36 |
37 int cx_linked_list_add(void **begin, void **end, ptrdiff_t loc_prev, ptrdiff_t loc_next, void *new_node); |
37 int cx_linked_list_add(void **begin, void **end, ptrdiff_t loc_prev, ptrdiff_t loc_next, void *new_node); |
38 |
38 |
39 extern cx_list_class cx_linked_list_class; |
39 extern cx_list_class cx_linked_list_class; |
40 |
40 |
41 typedef struct { |
|
42 void *begin; |
|
43 ptrdiff_t loc_prev; |
|
44 ptrdiff_t loc_next; |
|
45 size_t item_size; |
|
46 } CxLinkedListDesc; |
|
47 |
|
48 CxList cxLinkedListCreate(CxAllocator allocator, CxListComparator comparator, size_t item_size); |
41 CxList cxLinkedListCreate(CxAllocator allocator, CxListComparator comparator, size_t item_size); |
49 |
|
50 CxList cxLinkedListWrap(CxAllocator allocator, CxListComparator comparator, CxLinkedListDesc desc); |
|
51 |
42 |
52 void cxLinkedListDestroy(CxList list); |
43 void cxLinkedListDestroy(CxList list); |
53 |
44 |
54 size_t cxLinkedListRecalculateSize(CxList list); |
45 size_t cxLinkedListRecalculateSize(CxList list); |
55 |
46 |