[plt-scheme] More PLT-Scheme 402 extension
Hi all,
Two little questions:
- What is concept behind the naming convention for the
libmred3m_6m5fio.dll file? What is 6, m, 5, f, i, o?
- Another question is related to probably the immutable lists.
I want to pass a "normal" list to a function defined in an
extension. However I have a problem with SCHEME_PAIRP.
Is anything wrong in the code snippet below? Maybe the
extension receives some other kind of list?
Thanks for the help,
Best regards,
Peter Ivanyi
static void get_coord(Scheme_Object **argv, int iarg, double
*coord)
{
Scheme_Object *coord_car;
Scheme_Object *coord_cdr;
int icoord;
coord_cdr = argv[iarg];
for(icoord = 0; icoord < 3; icoord++)
{
/* this check does not work in 402 ???? */
if(!SCHEME_PAIRP(coord_cdr))
{
scheme_signal_error("e2curve: arg %d: must be a 3
element list", iarg+1);
}
___________________________
Genertel casco szenzációs áron!
A Genertelnél elfelejtheti, amit eddig a casco díjakról gondolt. Hogy miért? Járjon utána, kérjen ajánlatot most!
http://ad.adverticum.net/b/cl,1,6022,249296,296182/click.prm