Leopold Toetsch wrote:
( /me again mumbling why we have 6 different stack implementations with
a lot of duplicate code. One general stack with different sized data
items would do it too - with some overhead ;-)

Were this C++ I would say that we could write a single general purpose stack and use template meta-programming to avoid the overhead. Is there a similar solution available in C?


My instincts tell me that this solution will be dirty to the tune of massive macroing, but perhaps someone better with pure C than I am could provide a better answer.

Matt



Reply via email to