From: Alan S. <aj...@fr...> - 2009-05-20 17:38:32
|
> 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 |