Revision f4a60a9b lib/lists.h

View differences:

lib/lists.h
39 39
#define WALK_LIST2(n,nn,list,pos) \
40 40
  for(nn=(list).head; NODE_VALID(nn) && (n=SKIP_BACK(typeof(*n),pos,nn)); nn=nn->next)
41 41
#define WALK_LIST_DELSAFE(n,nxt,list) \
42
     for(n=HEAD(list); nxt=NODE_NEXT(n); n=(void *) nxt)
42
  for(n=HEAD(list); nxt=NODE_NEXT(n); n=(void *) nxt)
43
#define WALK_LIST2_DELSAFE(n,nn,nxt,list,pos) \
44
  for(nn=HEAD(list); (nxt=nn->next) && (n=SKIP_BACK(typeof(*n),pos,nn)); nn=nxt)
45

  
43 46
/* WALK_LIST_FIRST supposes that called code removes each processed node */
44 47
#define WALK_LIST_FIRST(n,list) \
45 48
     while(n=HEAD(list), (NODE (n))->next)

Also available in: Unified diff