> Hier an example of a sparse array of array (Try this with the
> macros!!)

Agreed, it's tricky using the macros, also you can't write the for/next
loop as elegantly...  Here's an 2-level array-of-array example stripped
down from some of my production code:

    Word_t *     valuep;        // in JudySL array.
    PPvoid_t     subpp;         // JudySL subarray pointer (proper type).
    ruleinfo_t * rip;           // in JudySL subarray (proper type).

    JSLI(valuep, LD_uRuleInfoMap, NDRname);
    subpp = (PPvoid_t) valuep;

// Get/save XXX in a subsidiary JudySL array:

    JSLI(valuep, *subpp, layername);

// Get/save new XXX record if needed:

    if ((rip = (ruleinfo_t *) (*valuep)) NO_PTR)
    ...

Cheers,
Alan Silverstein

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel

Reply via email to