On Tue, Sep 29, 2009 at 5:50 PM, simon qian <simonqian.open...@gmail.com> wrote:
> Hi,
> OUTPUT doesn't conflict with system header files.
> But I recommend to use MODULE_XXXXX to define a macro,
> so it will never conflict with anything.
> After all, IN, OUT, OUTPUT, INPUT and COUNTER are
> commonly used.

I loathe macros as much as the next guy, a nasty feature of C
if there ever was one that I wanted to pick on...

Prefixing is of course a common solution to avoid polluting
the namespace, as you suggests above...

Could you submit a patch?

(Prehaps a bit more specific prefix than the exact letters "MODULE_"
that is pretty general in itself)

-- 
Ø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

Reply via email to