X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fref_primitive.xml;h=79003698666d8ac462b6f70f4c4bd108ce2f3766;hb=e0f5a9b35708481bb640718f8ecd837cf4ae69f5;hp=ca9d77e306d0698da4e80205cc7fdcba73150ebf;hpb=4536279431c3b1dda383ae4ddb5c68cc6377b456;p=uffi.git diff --git a/doc/ref_primitive.xml b/doc/ref_primitive.xml index ca9d77e..7900369 100644 --- a/doc/ref_primitive.xml +++ b/doc/ref_primitive.xml @@ -1,7 +1,7 @@ - + + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + %myents; ]> @@ -50,10 +50,26 @@ :unsigned-int - Unsigned 32-bits. - :long - Signed 32 or 64 bits, depending upon the platform. + :long - Signed 32 or 64 bit integer, + depending upon the platform. - :unsigned-long - Unsigned 32 or 64 bits, depending upon the platform. + :unsigned-long - Unsigned 32 or 64 + bit integer, depending upon the platform. + + + :long-long - Signed 64 bits integer + for implementations that support this. If implementation + does not support + this, 'uffi:no-long-long is pushed on + the cl:*features* list. + + + :unsigned-long-long - Unsigned 64 + bits integer for implementations that support this. If + implementation does not support + this, 'uffi:no-long-long is pushed on + the cl:*features* list. :float - 32-bit floating point. @@ -126,10 +142,10 @@ Examples - + (def-constant pi2 (* 2 pi)) (def-constant exported-pi2 (* 2 pi) :export t) - + Side Effects @@ -185,11 +201,11 @@ Examples - + (def-foreign-type my-generic-pointer :pointer-void) (def-foreign-type a-double-float :double-float) (def-foreign-type char-ptr (* :char)) - + Side Effects @@ -253,14 +269,14 @@ Examples - + (def-array-pointer ca :unsigned-char) (let ((fs (convert-to-foreign-string "ab"))) (values (null-char-p (deref-array fs 'ca 0)) (null-char-p (deref-array fs 'ca 2)))) => &nil; &t; - + Side Effects