Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_skiplist.h>
Go to the source code of this file.
Macros | |
#define | SKIPLIST_MAX_DEPTH 31 |
#define SKIPLIST_MAX_DEPTH 31 |
Definition at line 12 of file skiplist.c.
|
static |
Definition at line 73 of file skiplist.c.
References find_insertpoint(), i, list(), rz_skiplist_node_free(), SKIPLIST_MAX_DEPTH, update(), and x.
Referenced by rz_skiplist_delete(), and rz_skiplist_delete_node().
|
static |
Definition at line 51 of file skiplist.c.
Referenced by delete_element(), rz_skiplist_find(), rz_skiplist_find_geq(), and rz_skiplist_insert().
|
static |
Definition at line 38 of file skiplist.c.
References test-lz4-versions::head, i, and SKIPLIST_MAX_DEPTH.
Referenced by rz_skiplist_new(), and rz_skiplist_purge().
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().
|
static |
Definition at line 28 of file skiplist.c.
References rz_skiplist_node_t::data, rz_skiplist_node_t::forward, free(), and list().
Referenced by delete_element(), rz_skiplist_free(), and rz_skiplist_purge().
|
static |
Definition at line 14 of file skiplist.c.
References rz_skiplist_node_t::data, rz_skiplist_node_t::forward, free(), level, NULL, RZ_NEW0, and RZ_NEWS0.
Referenced by rz_skiplist_insert(), and rz_skiplist_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.