From: Alexander Gavrilov <angavrilov@gm...> - 2010-11-04 13:21:17
> ---------- Forwarded message ----------
> From: Juan Jose Garcia-Ripoll <juanjose.garciaripoll@...>
> Date: Sun, Apr 25, 2010 at 2:47 PM
> Subject: ECL specific changes for CFFI
> To: cffi-devel@...
> * 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).
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.