[cffi-devel] [PATCH] emulating LONG-LONG on ECL

Luís Oliveira luismbo at gmail.com
Fri Jul 20 01:51:16 UTC 2007


Hello Stelian,

On 14/05/07, Stelian Ionescu <sionescu at common-lisp.net> wrote:
> Attached there is a patch made against the main branch(not the newtypes
> one) which adds :UNSIGNED-LONG-LONG and :LONG-LONG to ECL;

I took your patch and moved into the portable side of things so that
other Lisps can benefit from this. I've tested it on Lispworks and
Allegro and it passes the long-long tests.



> 1) callbacks don't work since actually ECL doesn't have LONG-LONG. this
> can be "fixed" by stating in the docs that on platforms where LONG-LONG
> is emulated callback simply don't work.

Yeah, regular functions won't work either. Will add this to the docs.


> 2) although possibly not related to CFFI, when loading IOLIB-POSIX I got this:
> NIL is not of type REAL.
> Broken at CFFI::NOTICE-FOREIGN-STRUCT-DEFINITION.
> IOLIB-POSIX>> :backtrace
> Backtrace: CFFI::NOTICE-FOREIGN-STRUCT-DEFINITION > eval

I haven't tested this with anything other than cffi-tests, but it has
a couple of struct tests and they're passing.

You can find the patch here:
<http://common-lisp.net/~loliveira/tmp/cffi+lotsastuff/>

Thanks!

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/



More information about the cffi-devel mailing list