19 typedef struct _list {
24 #define LIST_INIT(name) { &(name), &(name) }
30 return list->
next == list && list->
prev == list;
40 list->
next->prev = item;
56 #define list_for_each(dir, pos, head) \
57 for (pos = (head)->dir; pos != (head); pos = pos->dir)
static int list_empty(void *l)
static void list_insert(void *l, void *i)
static list_t * list_remove(void *i)