src/cx/list.h

changeset 1605
55b13f583356
parent 1604
68b75c091028
--- a/src/cx/list.h	Sun Dec 14 16:21:09 2025 +0100
+++ b/src/cx/list.h	Sun Dec 14 17:30:17 2025 +0100
@@ -302,7 +302,6 @@
  * @code
  * CxList *myCustomListCreate(
  *         const CxAllocator *allocator,
- *         cx_compare_func comparator,
  *         size_t elem_size
  * ) {
  *     if (allocator == NULL) {
@@ -314,7 +313,7 @@
  *
  *     // initialize
  *     cx_list_init((CxList*)list, &my_custom_list_class,
- *             allocator, comparator, elem_size);
+ *             allocator, elem_size);
  *
  *     // ... some more custom stuff ...
  *
@@ -325,13 +324,12 @@
  * @param list the list to initialize
  * @param cl the list class
  * @param allocator the allocator for the elements
- * @param comparator a compare function for the elements
  * @param elem_size the size of one element
  */
 cx_attr_nonnull_arg(1, 2, 3)
 CX_EXPORT void cx_list_init(struct cx_list_s *list,
     struct cx_list_class_s *cl, const struct cx_allocator_s *allocator,
-    cx_compare_func comparator, size_t elem_size);
+    size_t elem_size);
 
 /**
  * Returns the number of elements currently stored in the list.

mercurial