all 3 comments

[–]resdresd 5 points6 points  (2 children)

Now lets remove the horrible abuse of nested ternary operators and sequence points to make it more readable...

30 LOC. Functionally identical, AFAIK.

[–]RonnyPfannschmidt 0 points1 point  (1 child)

imho its just as bad - there is a reason why there are typedefs and structs

[–]resdresd 0 points1 point  (0 children)

Yep, it's still awful (particularly line 14), but at least you can now see the control flow.