in reply to XS returning undef?
try:dirinfo = newRV_noinc((SV *)newdirinfo);
BTW, I think you should also changesv_setsv(dirinfo, sv_2mortal(newRV_noinc((SV *)newdirinfo)));
to use newRV_noinc() to keep the refcount of errs correct.hv_store(newdirinfo, "Errors", 6, newRV((SV *)errs), 0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: XS returning undef?
by meetraz (Hermit) on Mar 09, 2003 at 08:13 UTC | |
by jand (Friar) on Mar 09, 2003 at 08:21 UTC | |
by PodMaster (Abbot) on Mar 09, 2003 at 08:22 UTC |