[cffi-devel] LispWorks 5.0/5.1 and LONG-LONG support
Chun Tian (binghe)
binghe.lisp at gmail.com
Mon Apr 7 00:50:33 UTC 2008
Hi,
> 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))
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)
More information about the cffi-devel
mailing list