Here's a snippett of my code.
I'm trying to return a list of references to lists.
RETVAL = NULL;
...
if (ok)
{
if (RETVAL EQ NULL) RETVAL = newAV();
avitem = newAV();
av_push(RETVAL,newRV((SV*)avitem));
for (j = 0; j < nfig; j++)
{
av_push(avitem,newSViv(fig[j].x));
av_push(avitem,newSViv(fig[j].y));
}
}
=========+=========+=========+=========+=========+=========+=========+
____ _ _ _ _ _ _____ _ _
| _ \(_) | | | \ | | | __ \ | | | |
| |_) |_| | |_ _ | \| | | |__) |_ _| |_| |_ ___ _ __
| _ <| | | | | | | | . ` | | ___/ _` | __| __/ _ \| '_ \
| |_) | | | | |_| | | |\ |_ | | | (_| | |_| || (_) | | | |
|____/|_|_|_|\__, | |_| \_(_) |_| \__,_|\__|\__\___/|_| |_|
__/ |
|___/
Texas Instruments ASIC Circuit Design Methology Group
Dallas, Texas
214-480-4455
[EMAIL PROTECTED]
=========+=========+=========+=========+=========+=========+=========+