| 5523 | } |
| 5524 | } |
| 5525 | static void twalk(const void *root, |
| 5526 | void (*action)(const void *, const VISIT, const int)) |
| 5527 | { |
| 5528 | if (root == NULL || action == NULL) |
| 5529 | return; |
| 5530 | struct node_s *n = (struct node_s *)root; |
| 5531 | tree_walk(n, 0, action); |
| 5532 | } |
| 5533 | |
| 5534 | static void tree_destroy(struct malloc_pool_s *pool, const struct node_s *n, |
| 5535 | void (*free_node)(void *)) |