Problem solved, I think: in case anyone was having a similar problem, here's
the code that I got to work [the relevant bits, anyway]:
void
foolist(n)
int n
PREINIT:
int i;
PPCODE:
EXTEND( SP, (n + 1) );
for(i = 0; i <= n; i++)
{
ST( i ) = sv_2mortal( newSViv( i ) );
}
XSRETURN( n + 1 );
Can anyone confirm PUSHi or XPUSHi working for them? If so, do they have a
code snippet they could share?
--
Vivek
- problem w. [X]PUSHi - `targ' undeclared Vivek Dasmohapatra
- Re: problem w. [X]PUSHi - `targ' undeclared Tye McQueen
- Re: problem w. [X]PUSHi - `targ' undeclared Vivek Dasmohapatra
- Re: problem w. [X]PUSHi - `targ' undeclare... Vivek Dasmohapatra
- Re: problem w. [X]PUSHi - `targ' undeclared Nick Ing-Simmons
- Re: problem w. [X]PUSHi - `targ' undeclared Vivek Dasmohapatra
