Sun, 14 Feb 2021 11:30:19 +0100
adds cxLinkedListDestroy prototype
src/cx/linked_list.h | file | annotate | diff | comparison | revisions | |
src/linked_list.c | file | annotate | diff | comparison | revisions |
1.1 --- a/src/cx/linked_list.h Mon Feb 08 00:20:52 2021 +0100 1.2 +++ b/src/cx/linked_list.h Sun Feb 14 11:30:19 2021 +0100 1.3 @@ -49,6 +49,8 @@ 1.4 1.5 CxList cxLinkedListWrap(CxAllocator allocator, CxListComparator comparator, CxLinkedListDesc desc); 1.6 1.7 +void cxLinkedListDestroy(CxList list); 1.8 + 1.9 size_t cxLinkedListRecalculateSize(CxList list); 1.10 1.11 #endif /* UCX_LINKED_LIST_H */
2.1 --- a/src/linked_list.c Mon Feb 08 00:20:52 2021 +0100 2.2 +++ b/src/linked_list.c Sun Feb 14 11:30:19 2021 +0100 2.3 @@ -185,6 +185,10 @@ 2.4 return list; 2.5 } 2.6 2.7 +void cxLinkedListDestroy(CxList list) { 2.8 + 2.9 +} 2.10 + 2.11 size_t cxLinkedListRecalculateSize(CxList list) { 2.12 cx_linked_list *ll = (cx_linked_list *) list->data.listdata; 2.13