Aldo Calpini <[EMAIL PROTECTED]> writes:
>Nick Ing-Simmons wrote:
>> It is better IMHO to have
>>
>> void peekstack(SV **stack,int items)
>>
>> and pass the values in.
>
>this is how I actually do it:
>
>  void peekstack( register SV **sp,
>                  register SV **mark,
>                  I32 ax,
>                  I32 items );
>
>called from XS as:
>
>  peekstack(sp, mark, ax, items);
>
>I've found that without all the sp/mark/ax stuff the
>ST(n) macro doesn't work properly.

Fine. I don't use the macro in my peekstack equivalent 
I just index stack e.g. SvPV(stack[i],...)


>
>BTW, this is transliterated from the Win32::GUI codebase.
>  
>cheers,
>Aldo
>
>__END__
>$_=q,just perl,,s, , another ,,s,$, hacker,,print;
-- 
Nick Ing-Simmons
http://www.ni-s.u-net.com/

Reply via email to