[Ecls-list] FFI patch

Juan Jose Garcia Ripoll lisp at arrakis.es
Mon Nov 29 05:26:05 UTC 2004

Goffioul Michael wrote:

>Attached is a patch that complete and fixes the FFI support in ECL.
>Now, a lot of UFFI tests/examples also works under ECL. The patch
>includes (non exhaustive):
>- use make_integer instead of MAKE_FIXNUM to convert array element
>- use :pointer-void instead of :object for '(* type) LISP type
>  in FFI functions
>- add explicit recast on FFI object when required
>- add ecl_cstring_to_string_or_nil() function to cover the case
>  when char* object is NULL
>Attached is also a test file that covers many FFI features. A large
>part of the tests is directly taken from UFFI.
Great! I've uploaded all your patches. The only thing I did not include 
are the tests because, containing code from UFFI itself, it is not clear 
under which license this file should be. Thanks a lot for taking care of 
the other fixes as well.



More information about the ecl-devel mailing list