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

Re: returning stack manipulation with WrapXS?

2002-03-07 Thread Stas Bekman
Doug MacEachern wrote: > % find xs -name "*.h" | xargs grep MPXS_ > ... > xs/Apache/Log/Apache__Log.h:static XS(MPXS_Apache__Log_dispatch) > xs/Apache/Log/Apache__Log.h:static XS(MPXS_Apache_LOG_MARK) > xs/Apache/Log/Apache__Log.h:static XS(MPXS_Apache__Log_log_xerror) > xs/Apache/Log/Apache__Log.

Re: returning stack manipulation with WrapXS?

2002-03-07 Thread Doug MacEachern
% find xs -name "*.h" | xargs grep MPXS_ ... xs/Apache/Log/Apache__Log.h:static XS(MPXS_Apache__Log_dispatch) xs/Apache/Log/Apache__Log.h:static XS(MPXS_Apache_LOG_MARK) xs/Apache/Log/Apache__Log.h:static XS(MPXS_Apache__Log_log_xerror) xs/Apache/Log/Apache__Log.h:static XS(MPXS_Apache__Log_log_er

Re: Apache2::ExtUtils (or equivalent)?

2002-03-07 Thread Doug MacEachern
it's on the todo list. the rough plan i had in my head is totally different from the 1.x version, i haven't had time to work on it yet. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: returning stack manipulation with WrapXS?

2002-03-07 Thread Stas Bekman
Stas Bekman wrote: > I can manipulate the elements on the sp stack if I use this declaration: > > void mpxs_Apache__Foo_bar(pTHX_ I32 items, SV **MARK, SV **SP) > > but I cannot control the stack on the way back, since WrapXS will > render this function as: > > XS(XS_Apache_Foo_bar) > { >

returning stack manipulation with WrapXS?

2002-03-07 Thread Stas Bekman
I can manipulate the elements on the sp stack if I use this declaration: void mpxs_Apache__Foo_bar(pTHX_ I32 items, SV **MARK, SV **SP) but I cannot control the stack on the way back, since WrapXS will render this function as: XS(XS_Apache_Foo_bar) { dXSARGS; { mpxs_Apache__Foo