[Ecls-list] c-inline and multiple values

Julian Stecklina der_julian at web.de
Mon Jan 24 18:28:02 UTC 2005


Hello,

is it possible to return multiple values from a c-inline form? Or if
that is not possible, how do I make the runtime aware of a C function
returning multiple values?

Say if I have

(Clines
"
cl_object static foo (..)
{
        ...
        NVALUES=2;
        VALUES(0) = ...;
        VALUES(1) = ...;
        return VALUES(0);
}
")

When I do a:

(defentry foo ...)

and call that, it seems from the C code generated, that the multiple
values are lost. Is this true?

Regards,
-- 
                    ____________________________
 Julian Stecklina  /  _________________________/
  ________________/  /
  \_________________/  LISP - truly beautiful





More information about the ecl-devel mailing list