Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
static void | tree_dfs_node (RTreeNode *r, RTreeVisitor *vis) |
static void | rz_tree_node_free (RTreeNode *n) |
static void | node_free (RTreeNode *n, RTreeVisitor *vis) |
static void | free_all_children (RTree *t) |
static void | update_depth (RTreeNode *n, RTreeVisitor *vis) |
static RTreeNode * | node_new (RTree *t, void *data) |
RZ_API RTree * | rz_tree_new (void) |
RZ_API void | rz_tree_free (RTree *t) |
RZ_API void | rz_tree_reset (RTree *t) |
RZ_API RTreeNode * | rz_tree_add_node (RTree *t, RTreeNode *node, void *child_data) |
RZ_API void | rz_tree_dfs (RTree *t, RTreeVisitor *vis) |
RZ_API void | rz_tree_bfs (RTree *t, RTreeVisitor *vis) |
|
static |
Definition at line 51 of file tree.c.
References node_free(), rz_tree_visitor_t::post_visit, and rz_tree_bfs().
Referenced by rz_tree_free(), and rz_tree_reset().
|
static |
Definition at line 47 of file tree.c.
References n, and rz_tree_node_free().
Referenced by free_all_children().
Definition at line 61 of file tree.c.
References n, NULL, rz_list_new(), and RZ_NEW0.
Referenced by rz_tree_add_node().
Definition at line 99 of file tree.c.
References rz_tree_node_t::children, rz_tree_node_t::n_children, node_new(), NULL, rz_tree_node_t::parent, rz_tree_visitor_t::pre_visit, rz_tree_t::root, rz_list_append(), rz_tree_node_t::tree, tree_dfs_node(), and update_depth().
Referenced by add_trace_tree_child(), and do_debug_trace_calls().
RZ_API void rz_tree_bfs | ( | RTree * | t, |
RTreeVisitor * | vis | ||
) |
Definition at line 132 of file tree.c.
References rz_tree_node_t::children, rz_tree_visitor_t::discover_child, n, NULL, rz_tree_visitor_t::post_visit, rz_tree_visitor_t::pre_visit, rz_tree_t::root, rz_pvector_empty(), rz_pvector_free(), rz_pvector_new(), rz_pvector_pop_front(), rz_pvector_push(), and rz_pvector_reserve().
Referenced by dot_trace_traverse(), and free_all_children().
RZ_API void rz_tree_dfs | ( | RTree * | t, |
RTreeVisitor * | vis | ||
) |
Definition at line 124 of file tree.c.
References rz_tree_t::root, and tree_dfs_node().
Referenced by trace_traverse().
Definition at line 76 of file tree.c.
References free(), and free_all_children().
Referenced by rz_debug_free().
|
static |
Definition at line 39 of file tree.c.
References free(), n, and rz_list_free().
Referenced by node_free().
Definition at line 85 of file tree.c.
References free_all_children(), NULL, and rz_tree_t::root.
Referenced by rz_cmd_debug_traces_reset_handler().
|
static |
Definition at line 7 of file tree.c.
References rz_tree_node_t::children, rz_tree_visitor_t::discover_child, n, rz_tree_visitor_t::post_visit, rz_tree_visitor_t::pre_visit, r, rz_stack_free(), rz_stack_is_empty(), rz_stack_new(), rz_stack_pop(), rz_stack_push(), and s.
Referenced by rz_tree_add_node(), and rz_tree_dfs().
|
static |