| 42 #ifdef __cplusplus |
42 #ifdef __cplusplus |
| 43 extern "C" { |
43 extern "C" { |
| 44 #endif |
44 #endif |
| 45 |
45 |
| 46 /** |
46 /** |
| 47 * The maximum item size that uses SBO swap instead of relinking. |
|
| 48 * |
|
| 49 */ |
|
| 50 extern const unsigned cx_linked_list_swap_sbo_size; |
|
| 51 |
|
| 52 /** |
|
| 53 * Allocates a linked list for storing elements with @p elem_size bytes each. |
47 * Allocates a linked list for storing elements with @p elem_size bytes each. |
| 54 * |
48 * |
| 55 * If @p elem_size is #CX_STORE_POINTERS, the created list stores pointers instead of |
49 * If @p elem_size is #CX_STORE_POINTERS, the created list stores pointers instead of |
| 56 * copies of the added elements and the compare function will be automatically set |
50 * copies of the added elements and the compare function will be automatically set |
| 57 * to cx_cmp_ptr(), if none is given. |
51 * to cx_cmp_ptr(), if none is given. |