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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52643

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