list.h revision 6091827530d6dd43479d6709fb6e9f745c11e900
/*-*- Mode: C; c-basic-offset: 8 -*-*/
#ifndef foolisthfoo
#define foolisthfoo
/* The head of the linked list. Use this in the structure that shall
* contain the head of the linked list */
t *name
/* The pointers in the linked list's items. Use this in the item structure */
#define LIST_FIELDS(t) \
/* Initialize the list's head */
#define LIST_HEAD_INIT(t,item) \
do { \
while(false)
/* Initialize a list item */
do { \
} while(false)
/* Prepend an item to the list */
do { \
} while(false)
/* Remove an item from the list */
do { \
else { \
} \
} while(false)
/* Find the head of the list */
do { \
} while (false)
/* Insert an item after another one (a = where, b = what) */
#define LIST_INSERT_AFTER(t,head,a,b) \
do { \
if (!_a) { \
} else { \
} \
} while(false)
#define LIST_FOREACH(i,head) \
#define LIST_FOREACH_SAFE(i,n,head) \
#endif