@@ -20,6 +20,7 @@ PFFI is a portable foreign function interface for R6RS Scheme implementations.
2020- ` define-type-alias ` is introduced, similar usage as ` typedef ` in C.
2121- ` boolean ` support for Scheme boolean.
2222- Supporting array foreign variable.
23+ - Supporting ` (* type) ` pointer form for foreign variable.
2324- Empty struct, i.e. ` (define-foreign-struct foo) ` , is supported
2425
2526## Example
@@ -85,6 +86,7 @@ Callback object may not be released automatically so it is user's responsibilty
8586to make sure to release it.
8687
8788#### [ Macro] ` define-foreign-variable ` _ shared-object_ _ type_ _ symbol-name_ [ _ scheme-name_ ]
89+ #### [ Macro] ` define-foreign-variable ` _ shared-object_ (* _ type_ ) _ symbol-name_ [ _ scheme-name_ ]
8890#### [ Macro] ` define-foreign-variable ` _ shared-object_ (array _ type_ ) _ symbol-name_ [ _ scheme-name_ ]
8991
9092Lookup foreign variable _ symbol-name_ from given _ shared-object_ and binds it
@@ -100,7 +102,9 @@ procedure.
100102The bound variable is settable, thus ` set! ` syntax can change the value
101103if it's allowed.
102104
103- If the second form is used, then the it creates an reference to an array
105+ If the second form is a readable form of specifying ` pointer ` as type.
106+
107+ If the third form is used, then the it creates an reference to an array
104108pointer, and the _ scheme-name_ will be a macro of 3 patterns:
105109
106110` _scheme-name_ ` : to return the raw pointer of the array.
0 commit comments