Commit fa095974 authored by Lev Walkin's avatar Lev Walkin

reverted back because of side effects

parent 4efbfb7e
...@@ -39,9 +39,10 @@ ...@@ -39,9 +39,10 @@
/* MSVC does not have typeof(), cannot prevent side effects! */ /* MSVC does not have typeof(), cannot prevent side effects! */
#define TQ_ADD(head, xel, field) do { \ #define TQ_ADD(head, xel, field) do { \
assert(TQ_NEXT((xel), field) == 0); \ typeof(xel) __el = (xel); \
*(head)->tq_tail = (xel); \ assert(TQ_NEXT((__el), field) == 0); \
(head)->tq_tail = &TQ_NEXT((xel), field); \ *(head)->tq_tail = (__el); \
(head)->tq_tail = &TQ_NEXT((__el), field); \
} while(0) } while(0)
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment