Lines Matching defs:head1
71 #define SLIST_CONCAT(head1, head2, type, field) \
73 if (SLIST_EMPTY(head1)) { \
74 if ((SLIST_FIRST(head1) = SLIST_FIRST(head2)) != NULL) \
77 QUEUE_TYPEOF(type) *cur = SLIST_FIRST(head1); \
124 #define SLIST_SWAP(head1, head2, type) \
126 QUEUE_TYPEOF(type) *first = SLIST_FIRST(head1); \
127 SLIST_FIRST(head1) = SLIST_FIRST(head2); \
187 #define STAILQ_CONCAT(head1, head2, type, field) \
190 *(head1)->stqh_last = (head2)->stqh_first; \
191 (head1)->stqh_last = (head2)->stqh_last; \
248 #define STAILQ_SWAP(head1, head2, type) \
250 QUEUE_TYPEOF(type) *first = STAILQ_FIRST(head1); \
251 QUEUE_TYPEOF(type) **last = (head1)->stqh_last; \
252 STAILQ_FIRST(head1) = STAILQ_FIRST(head2); \
253 (head1)->stqh_last = (head2)->stqh_last; \
256 if (STAILQ_EMPTY(head1)) \
257 (head1)->stqh_last = &STAILQ_FIRST(head1); \