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; \
|
(head)->stqh_last = &(head)->stqh_first; \
|
||||||
} while (0)
|
} 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 { \
|
#define STAILQ_REMOVE(head, elm, type, field) do { \
|
||||||
if ((head)->stqh_first == (elm)) { \
|
if ((head)->stqh_first == (elm)) { \
|
||||||
|
|
Loading…
Reference in New Issue