src/cx/linked_list.h

changeset 763
741a2040fa33
parent 759
475335643af4
child 764
ccbdbd088455
     1.1 --- a/src/cx/linked_list.h	Mon Dec 18 16:04:21 2023 +0100
     1.2 +++ b/src/cx/linked_list.h	Mon Dec 18 16:14:07 2023 +0100
     1.3 @@ -54,12 +54,14 @@
     1.4   * Allocates a linked list for storing elements with \p item_size bytes each.
     1.5   *
     1.6   * If \p item_size is CX_STORE_POINTERS, the created list will be created as if
     1.7 - * cxListStorePointers() was called immediately after creation.
     1.8 + * cxListStorePointers() was called immediately after creation and the compare
     1.9 + * function will be automatically set to cx_cmp_ptr(), if none is given.
    1.10   *
    1.11   * @param allocator the allocator for allocating the list nodes
    1.12   * (if \c NULL the cxDefaultAllocator will be used)
    1.13   * @param comparator the comparator for the elements
    1.14 - * (if \c NULL sort and find functions will not work)
    1.15 + * (if \c NULL, and the list is not storing pointers, sort and find
    1.16 + * functions will not work)
    1.17   * @param item_size the size of each element in bytes
    1.18   * @return the created list
    1.19   */
    1.20 @@ -77,7 +79,8 @@
    1.21   * after list creation or use cxLinkedListCreate().
    1.22   *
    1.23   * If \p item_size is CX_STORE_POINTERS, the created list will be created as if
    1.24 - * cxListStorePointers() was called immediately after creation.
    1.25 + * cxListStorePointers() was called immediately after creation and the compare
    1.26 + * function will be automatically set to cx_cmp_ptr().
    1.27   *
    1.28   * @param item_size the size of each element in bytes
    1.29   * @return the created list

mercurial