[Ecls-list] FFI patch

Goffioul Michael goffioul at imec.be
Mon Nov 29 02:37:03 UTC 2004


Hi,

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.

Michael.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffitest.lsp.bz2
Type: application/octet-stream
Size: 4054 bytes
Desc: ffitest.lsp.bz2
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20041129/786f7ec0/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffi.diff.bz2
Type: application/octet-stream
Size: 3621 bytes
Desc: ffi.diff.bz2
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20041129/786f7ec0/attachment-0001.obj>


More information about the ecl-devel mailing list