tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
69 #define NIL_LIST static_cast<LIST>(nullptr)
84 #define list_rest(l) ((l) ? (l)->next : NIL_LIST)
85 #define first_node(l) ((l) ? (l)->node : NIL_LIST)
94 #define iterate(l) for (; (l) != NIL_LIST; (l) = list_rest(l))
104 #define set_rest(l, cell) ((l)->next = (cell))
LIST push_last(LIST list, void *item)
void destroy_nodes(LIST list, void_dest destructor)
int(*)(void *, void *) int_compare
LIST search(LIST list, void *key, int_compare is_equal)
LIST delete_d(LIST list, void *key, int_compare is_equal)
LIST push(LIST list, void *element)
void(*)(void *) void_dest