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

Luís Oliveira luismbo at gmail.com
Sun Apr 6 19:06:23 UTC 2008


On Sun, Apr 6, 2008 at 4:41 PM, Chun Tian (binghe)
<binghe.lisp at 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.

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/



More information about the cffi-devel mailing list