src/tree.c

changeset 1040
1ecf4dbbc60c
parent 989
8aa57a7fecc4
equal deleted inserted replaced
1039:ec62453fc8a6 1040:1ecf4dbbc60c
401 static void *cx_tree_visitor_current(const void *it) { 401 static void *cx_tree_visitor_current(const void *it) {
402 const struct cx_tree_visitor_s *iter = it; 402 const struct cx_tree_visitor_s *iter = it;
403 return iter->node; 403 return iter->node;
404 } 404 }
405 405
406 __attribute__((__nonnull__)) 406 cx_attr_nonnull
407 static void cx_tree_visitor_enqueue_siblings( 407 static void cx_tree_visitor_enqueue_siblings(
408 struct cx_tree_visitor_s *iter, void *node, ptrdiff_t loc_next) { 408 struct cx_tree_visitor_s *iter, void *node, ptrdiff_t loc_next) {
409 node = tree_next(node); 409 node = tree_next(node);
410 while (node != NULL) { 410 while (node != NULL) {
411 struct cx_tree_visitor_queue_s *q; 411 struct cx_tree_visitor_queue_s *q;

mercurial