Revision b933281e lib/lists.h

View differences:

lib/lists.h
37 37
				n=(void *)((NODE (n))->next))
38 38
#define WALK_LIST_DELSAFE(n,nxt,list) \
39 39
     for(n=HEAD(list); nxt=(void *)((NODE (n))->next); n=(void *) nxt)
40
/* WALK_LIST_FIRST supposes that called code removes each processed node */
41
#define WALK_LIST_FIRST(n,list) \
42
     while(n=HEAD(list), (NODE (n))->next)
40 43
#define WALK_LIST_BACKWARDS(n,list) for(n=TAIL(list);(NODE (n))->prev; \
41 44
				n=(void *)((NODE (n))->prev))
42 45
#define WALK_LIST_BACKWARDS_DELSAFE(n,prv,list) \

Also available in: Unified diff