Macro needed for NEWCARD kernel and STAILQ emulation.
Pointed out by Richard Wackerbar
This commit is contained in:
parent
f9eb66d73a
commit
1c6972cf90
@ -224,6 +224,10 @@ struct { \
|
||||
(head)->stqh_last = &(head)->stqh_first; \
|
||||
} while (0)
|
||||
|
||||
#define STAILQ_REMOVE_HEAD_UNTIL(head, elm, field) do { \
|
||||
if (((head)->stqh_first = (elm)->field.stqe_next) == NULL) \
|
||||
(head)->stqh_last = &(head)->stqh_first; \
|
||||
} while (0)
|
||||
|
||||
#define STAILQ_REMOVE(head, elm, type, field) do { \
|
||||
if ((head)->stqh_first == (elm)) { \
|
||||
|
Loading…
x
Reference in New Issue
Block a user