X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=list.h;h=80f36a1ba58ee0032fb3fbd99c4054a03c917cbd;hp=de04ab9eed1184451f5338b06a7a2be9106aac5d;hb=702d72b58b6378c4cdb37cbb709fd1d351571123;hpb=c6d61cae8b5f71ae658dc254c6ee38a14f34dae2;ds=inline diff --git a/list.h b/list.h index de04ab9e..80f36a1b 100644 --- a/list.h +++ b/list.h @@ -33,6 +33,10 @@ struct list_head { struct list_head *prev; }; +/** Define an initialized list head. */ +#define INITIALIZED_LIST_HEAD(name) struct list_head name = { &(name), &(name) } + + /** must be called before using any other list functions */ #define INIT_LIST_HEAD(ptr) do { \ (ptr)->next = (ptr); (ptr)->prev = (ptr); \