tesseract
3.05.02
|
Go to the source code of this file.
Classes | |
struct | list_rec |
Macros | |
#define | NIL_LIST (LIST) 0 |
#define | list_rest(l) ((l) ? (l)->next : NIL_LIST) |
#define | first_node(l) ((l) ? (l)->node : NIL_LIST) |
#define | copy_first(l1, l2) (l2=push(l2, first_node(l1))) |
#define | iterate(l) for (; (l) != NIL_LIST; (l) = list_rest (l)) |
#define | iterate_list(x, l) for ((x)=(l); (x)!=0; (x)=list_rest(x)) |
#define | JOIN_ON(list1, list2) ((list1) = join ((list1), (list2))) |
#define | pop_off(list) ((list) = pop (list)) |
#define | push_on(list, thing) ((list) = push (list, (LIST) (thing))) |
#define | second_node(l) first_node (list_rest (l)) |
#define | set_rest(l, cell) ((l)->next = (cell)) |
#define | third(l) first_node (list_rest (list_rest (l))) |
Typedefs | |
typedef list_rec * | LIST |
Functions | |
int | count (LIST var_list) |
LIST | delete_d (LIST list, void *key, int_compare is_equal) |
LIST | delete_d (LIST list, void *key, TessResultCallback2< int, void *, void *> *is_equal) |
LIST | destroy (LIST list) |
void | destroy_nodes (LIST list, void_dest destructor) |
void | insert (LIST list, void *node) |
int | is_same_node (void *item1, void *item2) |
int | is_same (void *item1, void *item2) |
LIST | join (LIST list1, LIST list2) |
LIST | last (LIST var_list) |
void * | nth_cell (LIST var_list, int item_num) |
LIST | pop (LIST list) |
LIST | push (LIST list, void *element) |
LIST | push_last (LIST list, void *item) |
LIST | reverse (LIST list) |
LIST | reverse_d (LIST list) |
LIST | s_adjoin (LIST var_list, void *variable, int_compare compare) |
LIST | search (LIST list, void *key, int_compare is_equal) |
LIST | search (LIST list, void *key, TessResultCallback2< int, void *, void *> *) |
#define copy_first | ( | l1, | |
l2 | |||
) | (l2=push(l2, first_node(l1))) |
#define iterate_list | ( | x, | |
l | |||
) | for ((x)=(l); (x)!=0; (x)=list_rest(x)) |
#define JOIN_ON | ( | list1, | |
list2 | |||
) | ((list1) = join ((list1), (list2))) |
#define second_node | ( | l | ) | first_node (list_rest (l)) |
#define third | ( | l | ) | first_node (list_rest (list_rest (l))) |
int count | ( | LIST | var_list | ) |
Definition at line 103 of file oldlist.cpp.
LIST delete_d | ( | LIST | list, |
void * | key, | ||
int_compare | is_equal | ||
) |
Definition at line 120 of file oldlist.cpp.
LIST delete_d | ( | LIST | list, |
void * | key, | ||
TessResultCallback2< int, void *, void *> * | is_equal | ||
) |
Definition at line 149 of file oldlist.cpp.
Definition at line 182 of file oldlist.cpp.
Definition at line 199 of file oldlist.cpp.
void insert | ( | LIST | list, |
void * | node | ||
) |
Definition at line 215 of file oldlist.cpp.
int is_same | ( | void * | item1, |
void * | item2 | ||
) |
Definition at line 246 of file oldlist.cpp.
int is_same_node | ( | void * | item1, |
void * | item2 | ||
) |
Definition at line 235 of file oldlist.cpp.
Definition at line 258 of file oldlist.cpp.
Definition at line 271 of file oldlist.cpp.
void* nth_cell | ( | LIST | var_list, |
int | item_num | ||
) |
Definition at line 283 of file oldlist.cpp.
Definition at line 299 of file oldlist.cpp.
Definition at line 317 of file oldlist.cpp.
Definition at line 332 of file oldlist.cpp.
Definition at line 351 of file oldlist.cpp.
Definition at line 365 of file oldlist.cpp.
LIST s_adjoin | ( | LIST | var_list, |
void * | variable, | ||
int_compare | compare | ||
) |
Definition at line 378 of file oldlist.cpp.
LIST search | ( | LIST | list, |
void * | key, | ||
int_compare | is_equal | ||
) |
Definition at line 406 of file oldlist.cpp.
LIST search | ( | LIST | list, |
void * | key, | ||
TessResultCallback2< int, void *, void *> * | |||
) |
Definition at line 415 of file oldlist.cpp.