diff -r dce9b8450656 -r 4ad8ea3aee49 src/cx/linked_list.h --- a/src/cx/linked_list.h Tue Mar 28 19:13:33 2023 +0200 +++ b/src/cx/linked_list.h Tue Mar 28 21:00:33 2023 +0200 @@ -58,7 +58,9 @@ * cxListStorePointers() was called immediately after creation. * * @param allocator the allocator for allocating the list nodes + * (if \c NULL the cxDefaultAllocator will be used) * @param comparator the comparator for the elements + * (if \c NULL sort and find functions will not work) * @param item_size the size of each element in bytes * @return the created list */ @@ -66,7 +68,7 @@ CxAllocator const *allocator, CxListComparator comparator, size_t item_size -) __attribute__((__nonnull__)); +); /** * Allocates a linked list for storing elements with \p item_size bytes each. @@ -81,7 +83,8 @@ * @param item_size the size of each element in bytes * @return the created list */ -CxList *cxLinkedListCreateSimple(size_t item_size); +#define cxLinkedListCreateSimple(item_size) \ + cxLinkedListCreate(NULL, NULL, item_size) /** * Finds the node at a certain index.