Hi,
I am working on some stuff involving hlists in kernel. I have seen this in
lists.h:
#define hlist_for_each_entry(tpos, pos, head, member) \
for (pos = (head)->first; \
pos && \
({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \
pos = pos->next)
I have never encountered this syntax in C before, I am referring to the
curly braces and dangling "1" inside the for loop second parameter.
Can someone explain this?
Thanks,
Daniel.
--
You received this message because you are subscribed to the Google Groups
"linuxkernelnewbies" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.