1.1 --- a/src/cx/linked_list.h Sat Jan 29 14:32:04 2022 +0100 1.2 +++ b/src/cx/linked_list.h Sun Jan 30 14:19:00 2022 +0100 1.3 @@ -55,8 +55,8 @@ 1.4 * @param item_size the size of each element in bytes 1.5 * @return the created list 1.6 */ 1.7 -CxList cxLinkedListCreate( 1.8 - CxAllocator allocator, 1.9 +CxList *cxLinkedListCreate( 1.10 + CxAllocator *allocator, 1.11 CxListComparator comparator, 1.12 size_t item_size 1.13 ) __attribute__((__nonnull__)); 1.14 @@ -70,8 +70,8 @@ 1.15 * @param comparator the comparator for the elements 1.16 * @return the created list 1.17 */ 1.18 -CxList cxPointerLinkedListCreate( 1.19 - CxAllocator allocator, 1.20 +CxList *cxPointerLinkedListCreate( 1.21 + CxAllocator *allocator, 1.22 CxListComparator comparator 1.23 ) __attribute__((__nonnull__)); 1.24 1.25 @@ -85,8 +85,8 @@ 1.26 * @param array the array data 1.27 * @return the created list 1.28 */ 1.29 -CxList cxLinkedListFromArray( 1.30 - CxAllocator allocator, 1.31 +CxList *cxLinkedListFromArray( 1.32 + CxAllocator *allocator, 1.33 CxListComparator comparator, 1.34 size_t item_size, 1.35 size_t num_items, 1.36 @@ -100,7 +100,7 @@ 1.37 * 1.38 * @param list the list 1.39 */ 1.40 -void cxLinkedListDestroy(CxList list) __attribute__((__nonnull__)); 1.41 +void cxLinkedListDestroy(CxList *list) __attribute__((__nonnull__)); 1.42 1.43 /** 1.44 * Finds the node at a certain index.