Reversed buggy patch.
This commit is contained in:
parent
c25e90efed
commit
a872b0f7da
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ typedef struct list { /* In fact two overlayed nodes */
|
||||||
#define NODE (node *)
|
#define NODE (node *)
|
||||||
#define HEAD(list) ((void *)((list).head))
|
#define HEAD(list) ((void *)((list).head))
|
||||||
#define TAIL(list) ((void *)((list).tail))
|
#define TAIL(list) ((void *)((list).tail))
|
||||||
#define WALK_LIST(n,list) for((NODE (n))=HEAD(list);(NODE (n))->next; \
|
#define WALK_LIST(n,list) for((n)=HEAD(list);(NODE (n))->next; \
|
||||||
n=(void *)((NODE (n))->next))
|
n=(void *)((NODE (n))->next))
|
||||||
#define WALK_LIST_DELSAFE(n,ne,list) \
|
#define WALK_LIST_DELSAFE(n,ne,list) \
|
||||||
if ( ((NODE n) = HEAD(list)) ) \
|
if ( ((NODE n) = HEAD(list)) ) \
|
||||||
|
|
Loading…
Reference in a new issue