[cffi-devel] Lisp type for word size

Tobias C Rittweiler tcr at freebits.de
Mon Oct 25 15:21:20 UTC 2010


Does CFFI contain a Lisp type which represents the
machine's word size?

I guess it could be defined as

  (deftype word-size ()
    `(unsigned-byte ,(* 8 (foreign-type-size :long))))

Are there any caveats? E.g. what about a 32bit Lisp
implementation on a 64bit architecture?

Perhaps the type should rather be defined in each
backend.

  -T.





More information about the cffi-devel mailing list