removed check for list=!NULL which barfs on gcc 4.2

This commit is contained in:
Christian Thaeter 2007-10-20 17:00:53 +02:00
parent 9e76c6e33c
commit b67af669ee

View file

@ -115,7 +115,6 @@ typedef llist ** LList_ref;
* @param node pointer to the iterated node
*/
#define LLIST_FOREACH(list, node) \
if (!list); else \
for (LList node = llist_head (list); \
! llist_is_end (node, list); \
llist_forward (&node))
@ -126,7 +125,6 @@ typedef llist ** LList_ref;
* @param node pointer to the iterated node
*/
#define LLIST_FOREACH_REV(list, node) \
if (!list); else \
for (LList node = llist_tail (list); \
! llist_is_end (node, list); \
llist_backward (&node))
@ -138,7 +136,6 @@ typedef llist ** LList_ref;
* @param head pointer to the head node
*/
#define LLIST_WHILE_HEAD(list, head) \
if (!list); else \
for (LList head = llist_head (list); \
!llist_is_empty (list); \
head = llist_head (list))
@ -150,7 +147,6 @@ typedef llist ** LList_ref;
* @param tail pointer to the tail node
*/
#define LLIST_WHILE_TAIL(list, tail) \
if (!list); else \
for (LList tail = llist_tail (list); \
!llist_is_empty (list); \
tail = llist_tail (list))