On Sat, Jan 10, 2004 at 03:35:39PM +0000 Nicholas Clark wrote:
> On Sat, Jan 10, 2004 at 09:01:19AM +0100, Tassilo von Parseval wrote:
> > Hi,
> >
> > two little questions this time.
> >
> > 1) When I return multiple values from an XSUB by doing a
> >
> > ST(0) = sv_newmortal(...);
> > ST(1) = sv_newmortal(...);
> > XSRETURN(2);
> >
> > do I have to do a prior EXTEND(SP, 2)? Currently I am not doing it and
> > it seems to work fine.
>
> How many values are passed into the XSUB?
> My understanding is that you need to ensure that the stack is large enough,
> so you're probably getting away with it either because you're passed in
> (at least) 2 values, or the stack is already large enough for the order
> of calling you are using.
Thank you, that makes sense. I have a few methods later on that return
up to six values so I better extend the stack to be on the safe side.
Tassilo
--
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval