X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=list.h;fp=list.h;h=db2e84908130676e22f346eedea116254786146d;hb=899677b50128e00e58d76d26c05be9f078204c67;hp=de04ab9eed1184451f5338b06a7a2be9106aac5d;hpb=c9c96581d5a29830f555079e861dcac8d48722d5;p=paraslash.git diff --git a/list.h b/list.h index de04ab9e..db2e8490 100644 --- a/list.h +++ b/list.h @@ -33,6 +33,10 @@ struct list_head { struct list_head *prev; }; +/** Define an initialized list head. */ +#define 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); \