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))


>  (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/
_______________________________________________
cffi-devel mailing list
cffi-devel@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel

Reply via email to