3 ms·
> macros are an ugly solution, but they are a solution Tangential, but a decent example of that sort of thing, a generic red-black tree written entirely in the
by mjn 13y ago
> macros are an ugly solution, but they are a solution
Tangential, but a decent example of that sort of thing, a generic red-black tree written entirely in the C preprocessor: http://www.canonware.com/download/rb/rb_newer/rb.h http://www.canonware.com/download/rb/rb_newer/rb.h
- lflux 13y agoqueue.h is pretty widely used as well: http://www.openbsd.org/cgi-bin/cvsweb/src/sys/sys/queue.h?rev=1.38;content-type=text%2Fplain http://www.openbsd.org/cgi-bin/cvsweb/src/sys/sys/queue.h?re...