#define TAILQ_INSERT_AFTER(head,listelm,elm,field) do { \if ((TAILQ_NEXT((elm),field) = TAILQ_NEXT((listelm),field)) = NULL)\TAILQ_NEXT((elm),field)->field.tqe_prev = \&TAILQ_NEXT((elm),field); \else \(head)->tqh_last = &TAILQ_NEXT((elm),field); \TAI

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/27 19:45:27
#define TAILQ_INSERT_AFTER(head,listelm,elm,field) do { \if ((TAILQ_NEXT((elm),field) = TAILQ_NEXT((listelm),field)) = NULL)\TAILQ_NEXT((elm),field)->field.tqe_prev = \&TAILQ_NEXT((elm),field); \else \(head)->tqh_last = &TAILQ_NEXT((elm),field); \TAI
x)SNIMKUq v wt q HML,.IԜM|j4 .?׈ M[d0Y_f v`Z05( >F ZkԜTsZK 3sK$}nj  3I  נL5[:K  Ovzl ^ΘcIO[>mm~eY-O?bq~qAb(pX

#define TAILQ_INSERT_AFTER(head,listelm,elm,field) do { \if ((TAILQ_NEXT((elm),field) = TAILQ_NEXT((listelm),field)) = NULL)\TAILQ_NEXT((elm),field)->field.tqe_prev = \&TAILQ_NEXT((elm),field); \else \(head)->tqh_last = &TAILQ_NEXT((elm),field); \TAI
#define TAILQ_INSERT_AFTER(head,listelm,elm,field) do { \
if ((TAILQ_NEXT((elm),field) = TAILQ_NEXT((listelm),field)) = NULL)\
TAILQ_NEXT((elm),field)->field.tqe_prev = \
&TAILQ_NEXT((elm),field); \
else \
(head)->tqh_last = &TAILQ_NEXT((elm),field); \
TAILQ_NEXT((listelm),field) = (elm); \
(elm)->field.tqe_prev = &TAILQ_NEXT((listelm),field); \
} while (0)

#define TAILQ_INSERT_AFTER(head,listelm,elm,field) do { \if ((TAILQ_NEXT((elm),field) = TAILQ_NEXT((listelm),field)) = NULL)\TAILQ_NEXT((elm),field)->field.tqe_prev = \&TAILQ_NEXT((elm),field); \else \(head)->tqh_last = &TAILQ_NEXT((elm),field); \TAI
具体是什么地方不清楚,这是一个首尾队列插入元素的宏封装.