src/cx/linked_list.h

changeset 1113
dce04550fbef
parent 1111
78eeeb950883
equal deleted inserted replaced
1112:22dc2163fffd 1113:dce04550fbef
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.

mercurial