2008/4/6 Chun Tian (binghe) <binghe.lisp@gmail.com>:
LWL64 5.0:
Cannot compile tests/foreign-globals.lisp, seems in somewhere the FLI:FORIEGN-TYPED-AREF been called for 64-bit integers which LW 5.0 cannot support where I have no idea. For details, see test-reports-5.0 in attach.
That's odd. What do these two forms output? (hcl:compiler-macroexpand '(cffi:mem-ref ptr :char)) (hcl:compiler-macroexpand '(cffi:mem-ref ptr :long-long))
Both 5.0 and 5.1 give me this result, I think it's OK:
CL-USER 6 > (cffi:with-foreign-string (s "abc") (cffi:foreign-string-to-lisp s)) "abc" 3
No such luck here: CL-USER 5 : 1 > (cffi:with-foreign-string (s "abc") (cffi:foreign-string-to-lisp s)) Error: "��" is not of type SIMPLE-TEXT-STRING. (lispworks-personal-5-0-1-x86-linux running on an AMD64) -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/