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

Luís Oliveira luismbo at gmail.com
Mon Apr 7 01:31:58 UTC 2008


2008/4/7 Chun Tian (binghe) <binghe.lisp at gmail.com>:
>  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

Ah, silly me. :long-long is the same size as :long on x86-64. We have
to treat :long differently in the compiler macros as well. The
attached patch should work better this time.

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cffi-lispworks-long-long-v3.diff
Type: text/x-diff
Size: 3813 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20080407/aaf4fa7a/attachment.diff>


More information about the cffi-devel mailing list