2 * Sherlock Library -- Linked Lists
4 * (c) 1997--1999 Martin Mares <mj@ucw.cz>
6 * This software may be freely distributed and used according to the terms
7 * of the GNU Lesser General Public License.
12 #define _SHERLOCK_LISTS_C
13 #include "lib/lists.h"
16 add_tail(list *l, node *n)
20 n->next = (node *) &l->null;
27 add_head(list *l, node *n)
32 n->prev = (node *) &l->head;
38 insert_node(node *n, node *after)
40 node *z = after->next;
61 l->head = (node *) &l->null;
63 l->tail = (node *) &l->head;
67 add_tail_list(list *to, list *l)
75 q->next = (node *) &to->null;