[Ecls-list] Fwd: ECL specific changes for CFFI
Alexander Gavrilov
angavrilov at gmail.com
Thu Nov 4 13:21:10 UTC 2010
> ---------- Forwarded message ----------
> From: Juan Jose Garcia-Ripoll <juanjose.garciaripoll at googlemail.com>
> Date: Sun, Apr 25, 2010 at 2:47 PM
> Subject: ECL specific changes for CFFI
> To: cffi-devel at common-lisp.net
>
>
> * At the low level ECL has two different foreign function interfaces: one
> used in the interpreter and relying on an external library (libffi) and
> another one, much simpler, using the C compiler. Right now CFFI was only
> using the former unless it was not available. I provide a patch that chooses
> the interface depending on the use of the code: interpreter or compiled.
> (patch attached).
Hi,
I've found a problem with this change:
The dffi-function-pointer-call function should be put under #+dffi,
or CFFI fails to compile due to the si:call-cfun symbol being missing.
Also, it seems that the #-dffi/#+dffi logic is reversed in the
#-ecl-with-backend branch of produce-function-pointer-call.
Alexander
More information about the ecl-devel
mailing list