Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_list.h>
Go to the source code of this file.
Classes | |
struct | rz_skiplist_node_t |
struct | rz_skiplist_t |
Macros | |
#define | rz_skiplist_islast(list, el) (el->forward[0] == list->head) |
#define | rz_skiplist_length(list) (list->size) |
#define | rz_skiplist_foreach(list, it, pos) |
#define | rz_skiplist_foreach_safe(list, it, tmp, pos) |
Typedefs | |
typedef struct rz_skiplist_node_t | RzSkipListNode |
typedef struct rz_skiplist_t | RzSkipList |
Definition at line 48 of file rz_skiplist.h.
Definition at line 44 of file rz_skiplist.h.
Definition at line 46 of file rz_skiplist.h.
typedef struct rz_skiplist_t RzSkipList |
typedef struct rz_skiplist_node_t RzSkipListNode |
RZ_API bool rz_skiplist_delete | ( | RzSkipList * | list, |
void * | data | ||
) |
Definition at line 201 of file skiplist.c.
References delete_element(), and list().
Referenced by remove_offsetmap().
RZ_API bool rz_skiplist_delete_node | ( | RzSkipList * | list, |
RzSkipListNode * | node | ||
) |
Definition at line 206 of file skiplist.c.
References delete_element(), and list().
RZ_API bool rz_skiplist_empty | ( | RzSkipList * | list | ) |
Definition at line 284 of file skiplist.c.
References list().
RZ_API RzSkipListNode* rz_skiplist_find | ( | RzSkipList * | list, |
void * | data | ||
) |
Definition at line 210 of file skiplist.c.
References find_insertpoint(), list(), NULL, and x.
Referenced by get_category_t(), and get_class_t().
RZ_API RzSkipListNode* rz_skiplist_find_geq | ( | RzSkipList * | list, |
void * | data | ||
) |
Definition at line 218 of file skiplist.c.
References find_insertpoint(), list(), NULL, and x.
Referenced by rz_skiplist_get_geq().
RZ_API RzSkipListNode* rz_skiplist_find_leq | ( | RzSkipList * | list, |
void * | data | ||
) |
Definition at line 223 of file skiplist.c.
References i, list(), NULL, and x.
Referenced by rz_skiplist_get_leq().
RZ_API void rz_skiplist_free | ( | RzSkipList * | list | ) |
Definition at line 145 of file skiplist.c.
References free(), list(), rz_skiplist_node_free(), and rz_skiplist_purge().
Referenced by get_relocs(), mach0_free(), and rz_flag_free().
RZ_API void* rz_skiplist_get_first | ( | RzSkipList * | list | ) |
RZ_API void* rz_skiplist_get_geq | ( | RzSkipList * | list, |
void * | data | ||
) |
Definition at line 273 of file skiplist.c.
References list(), NULL, rz_skiplist_find_geq(), and x.
Referenced by rz_flag_get_nearest_list().
RZ_API void* rz_skiplist_get_leq | ( | RzSkipList * | list, |
void * | data | ||
) |
Definition at line 278 of file skiplist.c.
References list(), NULL, rz_skiplist_find_leq(), and x.
Referenced by rz_flag_get_nearest_list().
RZ_API void* rz_skiplist_get_n | ( | RzSkipList * | list, |
int | n | ||
) |
Definition at line 257 of file skiplist.c.
References count, list(), n, NULL, and rz_skiplist_foreach.
RZ_API RzSkipListNode* rz_skiplist_insert | ( | RzSkipList * | list, |
void * | data | ||
) |
Definition at line 156 of file skiplist.c.
References find_insertpoint(), i, list(), NULL, rz_skiplist_node_new(), SKIPLIST_MAX_DEPTH, update(), and x.
Referenced by flags_at_offset(), get_relocs(), parse_relocation_info(), and rz_skiplist_join().
RZ_API void rz_skiplist_join | ( | RzSkipList * | l1, |
RzSkipList * | l2 | ||
) |
Definition at line 236 of file skiplist.c.
References rz_skiplist_foreach, rz_skiplist_insert(), and rz_skiplist_purge().
RZ_API RzSkipList* rz_skiplist_new | ( | RzListFree | freefn, |
RzListComparator | comparefn | ||
) |
Definition at line 107 of file skiplist.c.
References free(), freefn(), init_head(), list(), NULL, RZ_NEW0, rz_skiplist_node_new(), and SKIPLIST_MAX_DEPTH.
Referenced by get_relocs(), and rz_flag_new().
RZ_API void rz_skiplist_purge | ( | RzSkipList * | list | ) |
Definition at line 128 of file skiplist.c.
References init_head(), list(), n, rz_skiplist_node_free(), and x.
Referenced by rz_flag_unset_all(), rz_skiplist_free(), and rz_skiplist_join().
RZ_API RzList* rz_skiplist_to_list | ( | RzSkipList * | list | ) |
Definition at line 292 of file skiplist.c.
References list(), n, rz_list_append(), rz_list_new(), and rz_skiplist_foreach.