Hi,
On Sun, Apr 6, 2008 at 4:41 PM, Chun Tian (binghe)
<[EMAIL PROTECTED]> 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))
Seems good:
CL-USER 3 > (cffi:with-foreign-object (x :long-long)
(setf (cffi:mem-ref x :long-long) 42)
(cffi:mem-ref x :long-long))
42
CL-USER 4 > (lisp-implementation-version)
"5.0.2"
(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.
Nice.
--
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
Regards,
Chun Tian (binghe)
_______________________________________________
cffi-devel mailing list
cffi-devel@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel