diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-03-05 09:37:45 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2008-03-05 09:37:45 +0000 |
commit | 5c25449dd9fd706f79ee6d92019f28044d9270fa (patch) | |
tree | ad5a2ddd80177af8109c358b71a9baa94f75581f /misc/sys | |
parent | ff9e7e3fe2fa6daf6ef542bb1fd1066164dd33bb (diff) |
Updated to fedora-glibc-20080305T0857cvs/fedora-glibc-2_7_90-8
Diffstat (limited to 'misc/sys')
-rw-r--r-- | misc/sys/queue.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/sys/queue.h b/misc/sys/queue.h index b0e6b38c19..daf4553d33 100644 --- a/misc/sys/queue.h +++ b/misc/sys/queue.h @@ -271,6 +271,14 @@ struct { \ (var); \ (var) = ((var)->field.stqe_next)) +#define STAILQ_CONCAT(head1, head2) do { \ + if (!STAILQ_EMPTY((head2))) { \ + *(head1)->stqh_last = (head2)->stqh_first; \ + (head1)->stqh_last = (head2)->stqh_last; \ + STAILQ_INIT((head2)); \ + } \ +} while (/*CONSTCOND*/0) + /* * Singly-linked Tail queue access methods. */ @@ -434,6 +442,15 @@ struct { \ (var); \ (var) = (*(((struct headname *)((var)->field.tqe_prev))->tqh_last))) +#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)); \ + } \ +} while (/*CONSTCOND*/0) + /* * Tail queue access methods. */ |