[cffi-devel] LispWorks 5.0/5.1 and LONG-LONG support

Luís Oliveira luismbo at gmail.com
Sun Apr 6 08:47:17 UTC 2008


2008/4/6 Chun Tian (binghe) <binghe.lisp at gmail.com>:
>  Your patch is OK for 5.1, but in 5.0, cannot compile
> src/cffi-lispworks.lisp:
>
>  **++++ Error in CFFI-SYS:%MEM-SET:
>   Unknown block $MEM-REF

The new patch I've attached should work.


> > By the way, foreign strings seem completely broken. Do the string
> > tests pass for you?
>
>  How to do this test? On LispWorks 5.1 (amd64-linux), I load the ASDF-TESTS
> package, and load the tests/run-test.lisp, all seems OK, no error found.

You can run the tests with (asdf:oos 'asdf:test-op :cffi)

Or, simply run the following snippet. Does this work for you?

    (cffi:with-foreign-string (s "abc") (cffi:foreign-string-to-lisp s))

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cffi-lispworks-long-long.diff
Type: text/x-diff
Size: 3503 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20080406/0b0b25d1/attachment.diff>


More information about the cffi-devel mailing list