Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: XS routine returns an extra depth of array refsby jeroenes (Priest) |
on Nov 05, 2001 at 22:28 UTC ( [id://123378]=note: print w/replies, xml ) | Need Help?? |
Maybe the casting of entry to an SV does the trick. newRC_inc can also take an AV as input.
Update: Tested the following... too lazy for XS, so Inline: In other words, just a 2D array as you wanted. BTW, Inline didn't complain about the AV* 's, but than, maybe those warnings were suppressed? So I think Fastolfe has pinpointed it, when he noticed you exc'd the sub in array context... If you really want to output arrays from C, you need to push your items on the stack.
In Section
Seekers of Perl Wisdom
|
|