On Mon, May 11, 2009 at 6:21 PM, Nicolas Pitre <n...@cam.org> wrote: > On Mon, 11 May 2009, Øyvind Harboe wrote: > >> > /* >> > * We don't care about the real pointer but only the low 32 bits of it >> > * for some funky hash lookup. The double cast removes warnings on >> > * 64-bit machines. >> > */ >> > #define PTR_TO_HASH(X) ((int)(long)(x)) >> >> Any reason not to use an inline fn? That would throw in some typechecking.... > > Good point. > >> Would you care to formulate a patch since you have a 64 bit system handy? > > Sure. I'd need some actual explanation for this game though. The above > was only wild guessing without looking deeply at the code.
I'm using a single callback function prototype w/4 arguments. Sometime an argument is an "int"'s other times a pointer, so I could either go with a union or these fancy games. -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development