Remove bad list_do/list_done macros
Signed-off-by: Lon Hohberger <lhh@redhat.com>
This commit is contained in:
parent
214f9b65bf
commit
aa4d011b75
@ -54,16 +54,6 @@ do { \
|
|||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/*
|
|
||||||
list_do(list, node) {
|
|
||||||
stuff;
|
|
||||||
} while (!list_done(list, node));
|
|
||||||
*/
|
|
||||||
#define list_do(list, curr) \
|
|
||||||
if (*list && (curr = *list)) do
|
|
||||||
|
|
||||||
#define list_done(list, curr) \
|
|
||||||
(curr && (((curr = (void *)le(curr)->le_next)) && (curr == *list)))
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* list_for(list, tmp, counter) {
|
* list_for(list, tmp, counter) {
|
||||||
|
Loading…
Reference in New Issue
Block a user