Mailing List Archive

Problem: PUSHi in XSUB
All the examples in perlxs are done with PUSHs. However, if you try
PUSHi, you will find that targ is not initialized.

One needs either patched xsubpp, which will do dTARG, or patched
docs. I prefer the first, since there should be no overhead with
optimization on.

Ilya
Re: Problem: PUSHi in XSUB [ In reply to ]
Ilya Zakharevich writes:
>
> All the examples in perlxs are done with PUSHs. However, if you try
> PUSHi, you will find that targ is not initialized.
>
> One needs either patched xsubpp, which will do dTARG, or patched
> docs. I prefer the first, since there should be no overhead with
> optimization on.
>
> Ilya
>

Please erase this message out of existense. :-(:-(:-(:-(:-(:-(:-(

A power glitch. PUSHi has absolutely different semantics.

Ilya
Re: Problem: PUSHi in XSUB [ In reply to ]
From: Ilya Zakharevich <ilya@math.ohio-state.edu>
>
> Ilya Zakharevich writes:
> >
> > All the examples in perlxs are done with PUSHs. However, if you try
> > PUSHi, you will find that targ is not initialized.
> >
> > One needs either patched xsubpp, which will do dTARG, or patched
> > docs. I prefer the first, since there should be no overhead with
> > optimization on.
> >
> > Ilya
> >
>
> Please erase this message out of existense. :-(:-(:-(:-(:-(:-(:-(
>
> A power glitch. PUSHi has absolutely different semantics.

Consider yourself forgiven.

Paul