diff -r 2e8878770de0 -r 8aea65ae1eaf src/cx/linked_list.h --- a/src/cx/linked_list.h Sun Mar 06 13:57:36 2022 +0100 +++ b/src/cx/linked_list.h Sat Apr 09 16:37:43 2022 +0200 @@ -56,7 +56,7 @@ * @return the created list */ CxList *cxLinkedListCreate( - CxAllocator *allocator, + CxAllocator const *allocator, CxListComparator comparator, size_t item_size ) __attribute__((__nonnull__)); @@ -71,7 +71,7 @@ * @return the created list */ CxList *cxPointerLinkedListCreate( - CxAllocator *allocator, + CxAllocator const *allocator, CxListComparator comparator ) __attribute__((__nonnull__)); @@ -86,7 +86,7 @@ * @return the created list */ CxList *cxLinkedListFromArray( - CxAllocator *allocator, + CxAllocator const *allocator, CxListComparator comparator, size_t item_size, size_t num_items, @@ -111,7 +111,7 @@ * @return the node found at the specified index */ void *cx_linked_list_at( - void *start, + void const *start, size_t start_index, ptrdiff_t loc_advance, size_t index @@ -150,7 +150,7 @@ * @return a pointer to the first node */ void *cx_linked_list_first( - void *node, + void const *node, ptrdiff_t loc_prev ) __attribute__((__nonnull__)); @@ -166,7 +166,7 @@ * @return a pointer to the last node */ void *cx_linked_list_last( - void *node, + void const *node, ptrdiff_t loc_next ) __attribute__((__nonnull__)); @@ -181,9 +181,9 @@ * @return the node or \c NULL if \p node has no predecessor */ void *cx_linked_list_prev( - void *begin, + void const *begin, ptrdiff_t loc_next, - void *node + void const *node ) __attribute__((__nonnull__)); /**