News for hackers. Stuff that matters.
Re:ISO C is increasingly moronic by tptacek on Tuesday December 20, 2011 @11:25PM (#3376348)
The idiomatic way you'd express a generic tailq in C with functions is with void-stars, which cost 4-8 bytes and incur the costs of indirecting through another memory address and, probably, of allocating lots of fiddly little structs at random times.

The macro version expresses the same generalized logic but embeds the link pointers in the structure you're queueing.

Re:ISO C is increasingly moronic by tkahn6 on Wednesday December 21, 2011 @06:27AM (#3377166)
Thanks! Helpful as always.