> Ah, found bug in my code -- how I hate that moronically stupid C
> language. Was using &a instead of a for JudyLGet.
All too easy. I've made recent use of libJudy myself in my contract
job, and even as one of the authors I find it surprisingly difficult to
keep the pointer expressions correct. In particular when *Pvalue return
by JudyL or JudySL, which it only knows as a word -- no forced
interpretation of the contents -- is known to the caller to contain a
pointer. So you must first check for Pvalue being null, etc:
foo_t * Pfoo;
JLG(Pvalue, ...);
Pfoo = ((Pvalue == NULL) ? NULL : (foo_t *) (*Pvalue));
It can get confusing, especially when dealing with array-of-array, etc.
But it sure has sped up some slow programs dramatically.
Alan Silverstein
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel