News for hackers. Stuff that matters.
Re:Type-safe generic data structures in C by bitwize on Friday April 09, 2021 @02:01AM (#26747154)
Macros of this sort are indeed used to define stacks, queues, deques, and other generic data structures in the NetBSD (and presumably other BSDs) source code. So the pattern is used in real software projects.
Re:Type-safe generic data structures in C by anaerobicover on Friday April 09, 2021 @03:14PM (#26754819)
Also OpenSSL