Doug,

This kind of construct:

   int mpxs_Apache__Foo_bar(pTHX_ I32 items, SV **MARK, SV **SP)

is special to WrapXS, isn't it?

you cannot really use ST() macros inside of it to access arguments on 
the stack. I see that 'ax' + PL_stack_base don't point to the first 
argument, but to the second one. Though MARK does point to the first 
argument, so what I get is:

first arg:   *MARK
second arg:  *(MARK+1) == ST(0)
...

I've read through the sources and it seems that you manipulate the stack 
only via MARK in this kind of mpxs_ functions.

Is this because of the second non-XSUB call from within the XS wrapper? 
And ST() macros are designed only to be used inside the XSUB calls?

Thanks, Doug!

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to