On Fri, Dec 10, 2010 at 9:28 AM, Peter Stuge <pe...@stuge.se> wrote:
> Øyvind Harboe wrote:
>> > Two versions attached.
>>
>> I'll leave it to you to decide which is the best way to
>> implement this
>
> I prefer the longer but simpler to read one. Were it mostly a smaller
> my own project then I'd gone with the shorter one.

I think optimizing for testability & readability is the way to go here.

Especially considering the evidence that this code doesn't get tested
a whole lot....


-- 
Øyvind Harboe

Can Zylin Consulting help on your project?

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

Reply via email to