in reply to hv_store_ent
The memory leaks went away now, and my hash doesn't seem to be getting corrupted. I'd still like somebody to verify the correctness of this though.void add_entry(hash) HV * hash PREINIT: SV * key; SV * val; CODE: key = sv_newmortal(); sv_setiv( dt, (IV)someint ); val = newSViv( (IV)otherint ); hv_store_ent( hash, key, val, 0 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: hv_store_ent
by tye (Sage) on Jan 18, 2001 at 04:59 UTC | |
by bmdhacks (Novice) on Jan 21, 2001 at 03:37 UTC | |
by tilly (Archbishop) on Jan 21, 2001 at 06:55 UTC |