Dick Hollenbeck wrote:
> I nak the arrays.  I hate them, they are a crash waiting to happen.
>   
Why?

> Put the same logic into a series of switches please, nested if necessary.
>
> Switches reads better, and are less subject to breakage.  We just 
> changes the values of the #defines in the last 10 minutes, this kind of 
> change breaks these tables in the future.
>   
That could be worked around by using C99 initializers. I am not fond of
replacing a small amount of static data with a bigger chunk of code.

cu
Michael

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to