52 extern bool CX_DISABLE_LINKED_LIST_SWAP_SBO; |
52 extern bool CX_DISABLE_LINKED_LIST_SWAP_SBO; |
53 |
53 |
54 /** |
54 /** |
55 * Allocates a linked list for storing elements with \p item_size bytes each. |
55 * Allocates a linked list for storing elements with \p item_size bytes each. |
56 * |
56 * |
|
57 * If \p item_size is CX_STORE_POINTERS, the created list will be created as if |
|
58 * cxListStorePointers() was called immediately after creation. |
|
59 * |
57 * @param allocator the allocator for allocating the list nodes |
60 * @param allocator the allocator for allocating the list nodes |
58 * @param comparator the comparator for the elements |
61 * @param comparator the comparator for the elements |
59 * @param item_size the size of each element in bytes |
62 * @param item_size the size of each element in bytes |
60 * @return the created list |
63 * @return the created list |
61 */ |
64 */ |
69 * Allocates a linked list for storing elements with \p item_size bytes each. |
72 * Allocates a linked list for storing elements with \p item_size bytes each. |
70 * |
73 * |
71 * The list will use cxDefaultAllocator and no comparator function. If you want |
74 * The list will use cxDefaultAllocator and no comparator function. If you want |
72 * to call functions that need a comparator, you must either set one immediately |
75 * to call functions that need a comparator, you must either set one immediately |
73 * after list creation or use cxLinkedListCreate(). |
76 * after list creation or use cxLinkedListCreate(). |
|
77 * |
|
78 * If \p item_size is CX_STORE_POINTERS, the created list will be created as if |
|
79 * cxListStorePointers() was called immediately after creation. |
74 * |
80 * |
75 * @param item_size the size of each element in bytes |
81 * @param item_size the size of each element in bytes |
76 * @return the created list |
82 * @return the created list |
77 */ |
83 */ |
78 CxList *cxLinkedListCreateSimple(size_t item_size); |
84 CxList *cxLinkedListCreateSimple(size_t item_size); |