On Sun, Sep 07, 2003 at 09:49:32AM +0200, Tassilo von Parseval wrote:

> I have a very basic C function that triggers a Perl callback:
> 
>     SV * call_Pslice (const char *func) {
>         SV *res;
> 
>         dSP;
>         ENTER;
>         SAVETMPS;
>         PUTBACK;
> 
>         (void)call_pv(func, G_SCALAR);

I don't fully understand all the perl calling conventions and macros, but
given that you've not manipulated the perl stack before this call_pv,
do you really need to PUTBACK? Your local stack pointer will be the same
as the global stack pointer, so isn't it always a no-op?

As to your real question, sorry, don't know. It seems most strange, and
I can't work out why it is going wrong.

Nicholas Clark

Reply via email to