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

Reply via email to