> Well... > > I really don't like this pointer business. No type checking at all, > etc. This should be turned upside down as you suggested already: embed > more generic structures within the more specific ones, and copy the > container_of() macro from Linux to get at the outer structure when > needed.
I would like to see this gone when we solve the interface problem. There is stuff like this all over OpenOCD. In C++ we would have used interfaces(pure abstract classes), but I'm still waiting for someone to come forth with the suitable mechanism for C(we'll visit this issue after 0.3 I'm sure). -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development