[cffi-devel] Latest changes, (probably) no significant errors with CFFI

Luís Oliveira luismbo at gmail.com
Thu Apr 29 08:57:42 UTC 2010


On Thu, Apr 29, 2010 at 8:50 AM, Juan Jose Garcia-Ripoll
<juanjose.garciaripoll at googlemail.com> wrote:
>>    CFFI> (macroexpand-1 '(foreign-funcall "foo" :boolean))
>>    (NOT (ZEROP (%FOREIGN-FUNCALL "foo" (:INT) ...)))
>>
>> Or did you mean something else?
>
> I mean reading and writing data into foreign types, not calling functions.

Ah, yes. That too.

CFFI> (swank-backend:compiler-macroexpand '(mem-aref p :boolean 4))
(NOT (ZEROP (%MEM-REF P :INT 16)))

CFFI> (swank-backend:compiler-macroexpand '(%MEM-REF P :INT 16))
(SB-SYS:SIGNED-SAP-REF-32 P 16)

-- 
Luís Oliveira
http://r42.eu/~luis/




More information about the cffi-devel mailing list