[MINOR] add LIST_HEAD_INIT to the list management macros

It is useful to have the ability to initialize a list while declaring it.
This commit is contained in:
Willy Tarreau 2007-05-07 00:18:32 +02:00
parent b9c62b90da
commit 2b1dccd501
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ struct list {
#define LIST_INIT(l) ((l)->n = (l)->p = (l))
#define LIST_HEAD_INIT(l) { &l, &l }
/* dual linked lists :
* Start = (struct list *) pointer to the next elem's prev list entry
* For each element :