X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fref_aggregate.xml;h=5aa86441135946ce540b3f5896fe97622c63b6ee;hb=b65ea0252128fbf33245c76d34569e30d9740877;hp=6d5666f7d1437cca67e1ca3bffa78065d241024e;hpb=6be0cb84dd1fc6a0ae9410f7ccdc34ac21ae4377;p=uffi.git diff --git a/doc/ref_aggregate.xml b/doc/ref_aggregate.xml index 6d5666f..5aa8644 100644 --- a/doc/ref_aggregate.xml +++ b/doc/ref_aggregate.xml @@ -1,6 +1,6 @@ - + %myents; ]> @@ -70,7 +70,7 @@ a foreign type with the name name of type Examples - + (def-enum abc (:a :b :c)) ;; Creates constants abc#a (1), abc#b (2), abc#c (3) and defines ;; the foreign type "abc" to be :int @@ -78,7 +78,7 @@ a foreign type with the name name of type (def-enum efoo (:e1 (:e2 10) :e3) :separator-string "-") ;; Creates constants efoo-e1 (1), efoo-e2 (10), efoo-e3 (11) and defines ;; the foreign type efoo to be :int - + Side Effects @@ -138,12 +138,12 @@ structure. It's type is :pointer-self. Examples - + (def-struct foo (a :unsigned-int) (b (* :char)) (c (:array :int 10)) (next :pointer-self)) - + Side Effects @@ -214,9 +214,9 @@ structure. It's type is :pointer-self. Examples - + (get-slot-value foo-ptr 'foo-structure 'field-name) - + Side Effects @@ -287,9 +287,9 @@ structure. It's type is :pointer-self. Examples - + (get-slot-pointer foo-ptr 'foo-structure 'my-char-ptr) - + Side Effects @@ -346,9 +346,9 @@ structure. It's type is :pointer-self. Examples - + (def-array-pointer byte-array-pointer :unsigned-char) - + Side Effects @@ -420,14 +420,14 @@ the array. Examples - + (def-array-pointer ca :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; - + Notes @@ -491,7 +491,7 @@ the array. Examples - + (def-union test-union (a-char :char) (an-int :int)) @@ -502,7 +502,7 @@ the array. (ensure-char-character (get-slot-value u 'test-union 'a-char)) (free-foreign-object u))) => #\A - + Side Effects