On Sun, Apr 6, 2008 at 4:41 PM, Chun Tian (binghe) binghe.lisp@gmail.com wrote:
CL-USER 5 > (hcl:compiler-macroexpand '(cffi:mem-ref ptr :long-long)) (CFFI-SYS:%MEM-REF PTR :LONG-LONG 0)
Looks good. Now, does this work?
(cffi:with-foreign-object (x :long-long) (setf (cffi:mem-ref x :long-long) 42) (cffi:mem-ref x :long-long))
(set-default-character-element-type 'simple-char)
Without this line, I'll also get a error:
Ah, cool. Thanks for the tip! That should greatly help me come up with a fix.