> I am probably wrong about some details (e.g. renaming), but the goal of > this is to eliminate the #if logic from the header files too. That is > not acceptable for installed libraries either, so we should not be > adding more of that to headers.... The tricks above are similar to > those that I used to clean openocd.c of the same logic, so those efforts > might help provide you with the required inspiration to solve this.
The minidrivers and inlining of jtag_add_dr_out() is pulling off something that's inheritely incestuous. The active minidriver must be included conditionally by some trick or another into all users of the jtag_add_xxx() API. -- Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 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