2008/4/6 Chun Tian (binghe) binghe.lisp@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))