On Mon, Jun 07, 2010 at 11:29:07PM -0400, Uri Guttman wrote: > >>>>> "GL" == Greg London <[email protected]> writes: > > GL> I have no idea if its been done before, but it was an intriguing > GL> exercise that piqued my interest and I decided to see if it was > GL> possible. Mostly it turned into a learning exercise for > GL> Template::Toolkit and how to look at a linked list in C in > GL> completely generic (templatable) terms. > > i did something similar in pure c and cpp macros. i still have the code > and found it. it manages doubly linked lists (aka queues and the code > uses queue and q all over). there is a c include file with many macros > for declarations and some operations and also a c file with more > operations. here is the core struct and declare macro
FreeBSD uses a set of C macros for list/queue management as well. I expect other UNIX distros have similar implementations: http://www.freebsd.org/cgi/man.cgi?query=queue&apropos=0&sektion=0&manpath=FreeBSD+8.0-RELEASE&format=html > uri -- Brian Reichert <[email protected]> 55 Crystal Ave. #286 Derry NH 03038-1725 USA BSD admin/developer at large _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

