zack> [arrays] Dick> [nak arrays, they get out of sync, etc]
???> [use C99 array initializers] All well and good, but remember their is this big nasty other compiler that does not support C99... openocd does not build with that compiler. A second approach is - *NOT* an array, but a short array of structures that implement a tag'ed array, during "init" - one time only, you sort the array of structs, and verify the index values are (a) dense, (b) no holes, and (c) start with zero! I had the same problem before C99... and it is/was a simple solution that stopped bugs dead in their track. -Duane. _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development