src/cx/tree.h

changeset 893
0a2b328f5b91
parent 890
54565fd74e74
child 894
89cd8dfdc3c2
--- a/src/cx/tree.h	Sun Sep 29 13:10:52 2024 +0200
+++ b/src/cx/tree.h	Sun Sep 29 13:32:33 2024 +0200
@@ -512,6 +512,7 @@
  * Refer to the documentation of #cx_tree_add() for more details.
  *
  * @param iter a pointer to an arbitrary iterator
+ * @param num the maximum number of elements to obtain from the iterator
  * @param sfunc a search function
  * @param cfunc a node creation function
  * @param cdata optional additional data
@@ -526,9 +527,10 @@
  * @return the number of nodes created and added
  * @see cx_tree_add()
  */
-__attribute__((__nonnull__(1, 2, 3, 5, 6)))
+__attribute__((__nonnull__(1, 3, 4, 6, 7)))
 size_t cx_tree_add_iter(
         struct cx_iterator_base_s *iter,
+        size_t num,
         cx_tree_search_func sfunc,
         cx_tree_node_create_func cfunc,
         void *cdata,

mercurial