116 #include "tesscallback.h" 122 #define NIL_LIST ((LIST)nullptr) 135 #define list_rest(l) ((l) ? (l)->next : NIL_LIST) 136 #define first_node(l) ((l) ? (l)->node : NIL_LIST) 146 #define copy_first(l1,l2) \ 147 (l2=push(l2, first_node(l1))) 157 for (; (l) != NIL_LIST; (l) = list_rest (l)) 167 #define iterate_list(x,l) \ 168 for ((x)=(l); (x)!=0; (x)=list_rest(x)) 177 #define JOIN_ON(list1,list2) \ 178 ((list1) = join ((list1), (list2))) 187 #define pop_off(list) \ 188 ((list) = pop (list)) 197 #define push_on(list,thing) \ 198 ((list) = push (list, (LIST) (thing))) 208 #define second_node(l) \ 209 first_node (list_rest (l)) 219 #define set_rest(l,cell)\ 231 first_node (list_rest (list_rest (l))) 236 int count(
LIST var_list);
238 LIST delete_d(
LIST list,
void *key, int_compare is_equal);
245 void destroy_nodes(
LIST list, void_dest destructor);
249 int is_same(
void *item1,
void *item2);
255 void *nth_cell(
LIST var_list,
int item_num);
259 LIST push(
LIST list,
void *element);
261 LIST push_last(
LIST list,
void *item);
267 LIST s_adjoin(
LIST var_list,
void *variable, int_compare compare);
269 LIST search(
LIST list,
void *key, int_compare is_equal);
struct list_rec * node
Definition: oldlist.h:126
struct list_rec * next
Definition: oldlist.h:127
Definition: oldlist.h:124