两处赋值,感觉代码都一个意思,去了一个,程序出错
http://bbs.csdn.net/topics/390368479
上个贴子
#define TAILQ_INSERT_TAIL(head, elm, field) do {\
(elm)->field.tqe_next = NULL;\
(elm)->field.tqe_prev = (head)->tqh_last;\
*(head)->tqh_last = (elm);\
(head)->tqh_last = &(elm)->field.tqe_next;\
} while (0)
do {
(&a1)->next.tqe_next = ((void *)0);
(&a1)->next.tqe_prev = (&list)->tqh_last;
*(&list)->tqh_last = (&a1);
(&list)->tqh_last = &(&a1)->next.tqe_next;
} while (0);
*(&list)->tqh_last = (&a1);
(&list)->tqh_last = &(&a1)->next.tqe_next;