Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | ls_iter_t |
struct | ls_t |
Macros | |
#define | ls_foreach(list, it, pos) |
#define | ls_foreach_safe(list, it, tmp, pos) |
#define | ls_foreach_prev(list, it, pos) |
#define | ls_iterator(x) (x) ? (x)->head : NULL |
#define | ls_empty(x) (!x || !x->length) |
#define | ls_head(x) x->head |
#define | ls_tail(x) x->tail |
#define | ls_unref(x) x |
#define | ls_iter_get(x) |
#define | ls_iter_next(x) (x ? 1 : 0) |
#define | ls_iter_cur(x) x->p |
#define | ls_iter_unref(x) x |
#define | ls_length(x) x->length |
#define | ls_push(x, y) ls_append(x, y) |
Typedefs | |
typedef void(* | SdbListFree) (void *ptr) |
typedef int(* | SdbListComparator) (const void *a, const void *b) |
typedef struct ls_iter_t | SdbListIter |
typedef struct ls_t | SdbList |
#define ls_iter_get | ( | x | ) |
typedef struct ls_iter_t SdbListIter |
RZ_API SdbListIter* ls_append | ( | SdbList * | list, |
void * | data | ||
) |
Definition at line 200 of file ls.c.
References ls_iter_t::data, list(), ls_iter_t::n, NULL, ls_iter_t::p, and RZ_NEW.
Referenced by ls_clone(), ls_insert(), ns_free_exc_list(), ns_sync(), sdb_foreach_list_cb(), sdb_foreach_list_filter_cb(), sdb_foreach_match_cb(), sdb_hook(), sdb_ns(), and sdb_ns_set().
Definition at line 265 of file ls.c.
References list(), ls_append(), ls_foreach, ls_new(), NULL, r, and v.
Referenced by text_save().
Definition at line 353 of file ls.c.
References ls_iter_t::data, free(), i, list(), n, ls_iter_t::n, NULL, and ls_iter_t::p.
RZ_API void ls_delete | ( | SdbList * | list, |
SdbListIter * | iter | ||
) |
Definition at line 133 of file ls.c.
References free(), list(), ls_split_iter(), and NULL.
Referenced by ls_delete_data(), ls_destroy(), ns_free_exc_list(), sdb_ns_unset(), and sdb_unhook().
Definition at line 176 of file ls.c.
References list(), ls_delete(), ls_iter_t::n, and NULL.
Referenced by load_process_line(), and ls_free().
Definition at line 191 of file ls.c.
References free(), list(), ls_destroy(), and NULL.
Referenced by __set_rcb(), load_ctx_fini(), ns_free_exc_list(), rz_analysis_calling_conventions(), rz_analysis_class_get_inheritance_graph(), rz_analysis_class_list_handler(), rz_analysis_class_vtable_lookup_handler(), rz_analysis_dwarf_integrate_functions(), rz_analysis_noreturn_functions(), rz_core_visual_analysis_classes(), rz_flag_tags_list(), sdb_diff(), sdb_fini(), sdb_hook_free(), sdb_load_arch_profile(), sdb_load_base_types(), sdb_load_callables(), sdb_load_sysregs(), sdb_ns_free_all(), sdb_ns_sync(), sdb_querys(), sdb_text_save_fd(), and text_save().
RZ_API SdbListIter* ls_insert | ( | SdbList * | list, |
int | n, | ||
void * | data | ||
) |
Definition at line 303 of file ls.c.
References ls_iter_t::data, i, list(), ls_append(), ls_prepend(), n, ls_iter_t::n, NULL, ls_iter_t::p, and RZ_NEW0.
RZ_API SdbListIter* ls_item_new | ( | void * | data | ) |
RZ_API void ls_iter_init | ( | SdbListIter * | iter, |
SdbList * | list | ||
) |
Definition at line 281 of file ls.c.
References ls_t::head, ls_t::length, ls_iter_t::n, NULL, ls_iter_t::p, ls_t::sorted, and ls_t::tail.
RZ_API bool ls_merge_sort | ( | SdbList * | list, |
SdbListComparator | cmp | ||
) |
Definition at line 16 of file ls.c.
References list(), NULL, and RZ_NEW0.
Referenced by load_ctx_init(), ls_clone(), ls_newf(), sdb_diff(), sdb_hook(), sdb_new(), sdb_ns_free_all(), sdb_ns_sync(), and sdb_text_save_fd().
RZ_API SdbList* ls_newf | ( | SdbListFree | freefn | ) |
Definition at line 8 of file ls.c.
References freefn(), list(), and ls_new().
Referenced by sdb_foreach_list(), sdb_foreach_list_filter_user(), and sdb_foreach_match().
Definition at line 244 of file ls.c.
References free(), list(), and NULL.
Referenced by sdb_diff_ctx(), sdb_diff_report(), and text_save().
RZ_API SdbListIter* ls_prepend | ( | SdbList * | list, |
void * | data | ||
) |
Definition at line 224 of file ls.c.
References ls_iter_t::data, list(), ls_iter_t::n, NULL, ls_iter_t::p, and RZ_NEW.
Referenced by ls_insert().
RZ_API bool ls_sort | ( | SdbList * | list, |
SdbListComparator | cmp | ||
) |
Definition at line 119 of file ls.c.
References cmp(), list(), ls_insertion_sort(), and ls_merge_sort().
Referenced by sdb_foreach_list(), sdb_foreach_list_filter_user(), and text_save().
RZ_API void ls_split_iter | ( | SdbList * | list, |
SdbListIter * | iter | ||
) |