[cffi-devel] Lisp type for word size

Dmitry Ignatiev lovesan.ru at gmail.com
Mon Oct 25 17:34:39 UTC 2010


>Are there any caveats?
:long may be not of a mahine word size on windows, for example.
CFFI, unfortunatly, does not have a :size-t or similiar type at the moment.

But, using trivial-features library(which is already used by cffi), on
x86[-64] platform you could define it like this:
(defctype :size-t #+x86-64 :uint64 #+x86 :uint32)
have no idea about other platforms, however
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20101025/1e30543c/attachment.html>


More information about the cffi-devel mailing list