Re: [Qemu-devel] [RFC] potential risk for macro QTAILQ_INSERT_BEFORE

2011-09-28 Thread Jan Kiszka
On 2011-09-28 05:38, Wayne Xia wrote: Hi, during my coding, I found macro a bit different from other QTAIL macros. QTAILQ_INSERT_AFTER was defined as: --- #define QTAILQ_INSERT_AFTER(head, listelm, elm, field) do { \

Re: [Qemu-devel] [RFC] potential risk for macro QTAILQ_INSERT_BEFORE

2011-09-28 Thread Wayne Xia
于 2011-9-28 16:43, Jan Kiszka 写道: On 2011-09-28 05:38, Wayne Xia wrote: Hi, during my coding, I found macro a bit different from other QTAIL macros. QTAILQ_INSERT_AFTER was defined as: --- #define QTAILQ_INSERT_AFTER(head,

[Qemu-devel] [RFC] potential risk for macro QTAILQ_INSERT_BEFORE

2011-09-27 Thread Wayne Xia
Hi, during my coding, I found macro a bit different from other QTAIL macros. QTAILQ_INSERT_AFTER was defined as: --- #define QTAILQ_INSERT_AFTER(head, listelm, elm, field) do { \ if (((elm)-field.tqe_next =