Re: stack question

2002-03-08 Thread Stas Bekman
Doug MacEachern wrote: > On Fri, 8 Mar 2002, Stas Bekman wrote: > > >>Doug, >> >>This kind of construct: >> >> int mpxs_Apache__Foo_bar(pTHX_ I32 items, SV **MARK, SV **SP) >> >>is special to WrapXS, isn't it? >> > > dunno if i'd call it special. usage is derived from PP() functions in the

Re: stack question

2002-03-08 Thread Doug MacEachern
On Fri, 8 Mar 2002, Stas Bekman wrote: > Doug, > > This kind of construct: > >int mpxs_Apache__Foo_bar(pTHX_ I32 items, SV **MARK, SV **SP) > > is special to WrapXS, isn't it? dunno if i'd call it special. usage is derived from PP() functions in the perl core. > you cannot really use

stack question

2002-03-07 Thread Stas Bekman
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