Macro needed for NEWCARD kernel and STAILQ emulation.

Pointed out by Richard Wackerbar
This commit is contained in:
Warner Losh 1999-10-30 04:18:59 +00:00
parent f9eb66d73a
commit 1c6972cf90
1 changed files with 4 additions and 0 deletions

View File

@ -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)) { \