Stephane Payrard <[EMAIL PROTECTED]> wrote: > Siva is a type that acts as a hash, array , string scalar, int > scalar. It is intended as the type for nodes of attributed trees > These attributed trees may probably be of various kinds such as > parse trees and XML trees. The intensive use of context should > minimize explicit structure walking.
> Hashes and arrays are allocated only when needed. > I have a problem with siva.t. The pasm code is the same as > siva.pasm though. What problem? > +/* rhs and lhs versions needed to avoid the msg "warning: use of cast expressions > as lvalues is deprecated" Have a look at LVALUE_CAST() > +#define siva_hash(a) ((siva*) PMC_pmc_val(a))->hash > +#define siva_str(a) ((siva*) PMC_pmc_val(a))->s What happens, if I create a hash and extract a string? leo