Use correct TAILQ_CONCAT macro when not defined.

This commit is contained in:
Roy Marples committed 2008-03-16 17:27:13 +00:00
1 parent 1fd1472dde
commit 40930d7d0a
6 files changed
+15 -14

No files matched your search

+3 -2
View File
@@ -111,9 +111,10 @@
#endif
#ifndef TAILQ_CONCAT
#define TAILQ_CONCAT(head1, head2) do { \
if (!TAILQ_EMPTY((head2))) { \
#define TAILQ_CONCAT(head1, head2, field) do { \
if (!TAILQ_EMPTY(head2)) { \
*(head1)->tqh_last = (head2)->tqh_first; \
(head2)->tqh_first->field.tqe_prev = (head1)->tqh_last; \
(head1)->tqh_last = (head2)->tqh_last; \
TAILQ_INIT((head2)); \
} \