Fixing the documentation internal links to work
This commit is contained in:
parent
a8c7c2efe0
commit
ae7e87105c
51
README.md
51
README.md
|
|
@ -77,7 +77,6 @@ conforming to some specification.
|
||||||
<main>
|
<main>
|
||||||
|
|
||||||
## Goals
|
## Goals
|
||||||
|
|
||||||
<a name="goals"></a>
|
<a name="goals"></a>
|
||||||
|
|
||||||
- Support only R7RS implementations
|
- Support only R7RS implementations
|
||||||
|
|
@ -87,7 +86,6 @@ conforming to some specification.
|
||||||
- Stability and being boring after 1.0.0 is reached
|
- Stability and being boring after 1.0.0 is reached
|
||||||
|
|
||||||
## Non goals
|
## Non goals
|
||||||
|
|
||||||
<a name="non-goals"></a>
|
<a name="non-goals"></a>
|
||||||
|
|
||||||
- To have every possible FFI feature
|
- To have every possible FFI feature
|
||||||
|
|
@ -96,14 +94,12 @@ conforming to some specification.
|
||||||
- The pffi library itself may require compilation on installation
|
- The pffi library itself may require compilation on installation
|
||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
||||||
<a name="status"></a>
|
<a name="status"></a>
|
||||||
|
|
||||||
Currently the interface of the library is in okay shape. It propably will not change much but no
|
Currently the interface of the library is in okay shape. It propably will not change much but no
|
||||||
guarantees are being made just yet.
|
guarantees are being made just yet.
|
||||||
|
|
||||||
### Current caveats
|
### Current caveats
|
||||||
|
|
||||||
<a name="current-caveats"></a>
|
<a name="current-caveats"></a>
|
||||||
|
|
||||||
- No way to pass structs by value
|
- No way to pass structs by value
|
||||||
|
|
@ -119,11 +115,9 @@ guarantees are being made just yet.
|
||||||
For roadmap to 1.0.0 see [issues](https://todo.sr.ht/~retropikzel/r7rs-pffi?search=status%3Aopen%20label%3A%221.0.0%22)
|
For roadmap to 1.0.0 see [issues](https://todo.sr.ht/~retropikzel/r7rs-pffi?search=status%3Aopen%20label%3A%221.0.0%22)
|
||||||
|
|
||||||
## Feature mplementation table
|
## Feature mplementation table
|
||||||
|
|
||||||
<a name="feature-implementation-table"></a>
|
<a name="feature-implementation-table"></a>
|
||||||
|
|
||||||
## Primitives
|
## Primitives
|
||||||
|
|
||||||
<a name="feature-implementation-table-primitives"></a>
|
<a name="feature-implementation-table-primitives"></a>
|
||||||
|
|
||||||
| | pffi-init | pffi-size-of | pffi-define-library | pffi-pointer-null | pffi-pointer-null? | pffi-pointer-address | pffi-pointer? | pffi-pointer-set! | pffi-pointer-get | pffi-define | pffi-define-callback |
|
| | pffi-init | pffi-size-of | pffi-define-library | pffi-pointer-null | pffi-pointer-null? | pffi-pointer-address | pffi-pointer? | pffi-pointer-set! | pffi-pointer-get | pffi-define | pffi-define-callback |
|
||||||
|
|
@ -146,7 +140,6 @@ For roadmap to 1.0.0 see [issues](https://todo.sr.ht/~retropikzel/r7rs-pffi?sear
|
||||||
| Ypsilon | X | X | X | X | X | X | X | X | X | X | X |
|
| Ypsilon | X | X | X | X | X | X | X | X | X | X | X |
|
||||||
|
|
||||||
## Built upon
|
## Built upon
|
||||||
|
|
||||||
<a name="feature-implementation-table-built-upon"></a>
|
<a name="feature-implementation-table-built-upon"></a>
|
||||||
|
|
||||||
These features are built upon the primitives and if primitives are implemented
|
These features are built upon the primitives and if primitives are implemented
|
||||||
|
|
@ -170,7 +163,6 @@ and work, they should work too.
|
||||||
- pffi-array-\>list
|
- pffi-array-\>list
|
||||||
|
|
||||||
### Not started
|
### Not started
|
||||||
|
|
||||||
<a name="not-started"></a>
|
<a name="not-started"></a>
|
||||||
|
|
||||||
- [LIPS](https://lips.js.org/)
|
- [LIPS](https://lips.js.org/)
|
||||||
|
|
@ -193,7 +185,6 @@ and work, they should work too.
|
||||||
- Need to study the implementation more
|
- Need to study the implementation more
|
||||||
|
|
||||||
### Other
|
### Other
|
||||||
|
|
||||||
<a name="other"></a>
|
<a name="other"></a>
|
||||||
|
|
||||||
- [s7](https://scheme.fail://ccrma.stanford.edu/software/snd/snd/s7.html)
|
- [s7](https://scheme.fail://ccrma.stanford.edu/software/snd/snd/s7.html)
|
||||||
|
|
@ -202,11 +193,9 @@ and work, they should work too.
|
||||||
- Desires no C interop, I can respect that
|
- Desires no C interop, I can respect that
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
<a name="documentation"></a>
|
<a name="documentation"></a>
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
<a name="installation"></a>
|
<a name="installation"></a>
|
||||||
|
|
||||||
Download the latest release from
|
Download the latest release from
|
||||||
|
|
@ -216,32 +205,27 @@ Unpack it somewhere and copy the directory called "retropikzel" to your projects
|
||||||
library directory. For the rest of this documentation it is assumed to be ./snow.
|
library directory. For the rest of this documentation it is assumed to be ./snow.
|
||||||
|
|
||||||
#### Compiling the libary
|
#### Compiling the libary
|
||||||
|
|
||||||
<a name="compiling-the-library"></a>
|
<a name="compiling-the-library"></a>
|
||||||
Some implementations need extra step of compiling the library. Change directory
|
Some implementations need extra step of compiling the library. Change directory
|
||||||
to ./snow/retropikzel/pffi and run command corresponding to your implementation.
|
to ./snow/retropikzel/pffi and run command corresponding to your implementation.
|
||||||
|
|
||||||
##### Chibi
|
##### Chibi
|
||||||
|
|
||||||
<a name="compiling-the-library-chibi"></a>
|
<a name="compiling-the-library-chibi"></a>
|
||||||
|
|
||||||
make -C ./snow/retropikzel/pffi chibi-pffi.so
|
make -C ./snow/retropikzel/pffi chibi-pffi.so
|
||||||
|
|
||||||
##### Gauche
|
##### Gauche
|
||||||
|
|
||||||
<a name="compiling-the-library-gauche"></a>
|
<a name="compiling-the-library-gauche"></a>
|
||||||
|
|
||||||
make -C ./snow/retropikzel/pffi gauche-pffi.so
|
make -C ./snow/retropikzel/pffi gauche-pffi.so
|
||||||
|
|
||||||
#### Dependencies
|
#### Dependencies
|
||||||
|
|
||||||
<a name="dependencies"></a>
|
<a name="dependencies"></a>
|
||||||
|
|
||||||
Some implementations have extra dependencies/requirements beyond just the
|
Some implementations have extra dependencies/requirements beyond just the
|
||||||
library.
|
library.
|
||||||
|
|
||||||
#### Chibi
|
#### Chibi
|
||||||
|
|
||||||
<a name="dependencies-chibi"></a>
|
<a name="dependencies-chibi"></a>
|
||||||
|
|
||||||
Building depends on libffi.
|
Building depends on libffi.
|
||||||
|
|
@ -251,7 +235,6 @@ Debian/Ubuntu/Mint install with:
|
||||||
apt install libffi-dev
|
apt install libffi-dev
|
||||||
|
|
||||||
#### Chicken
|
#### Chicken
|
||||||
|
|
||||||
<a name="dependencies-chicken"></a>
|
<a name="dependencies-chicken"></a>
|
||||||
|
|
||||||
Needs [r7rs egg](https://wiki.call-cc.org/eggref/5/r7rs), install with:
|
Needs [r7rs egg](https://wiki.call-cc.org/eggref/5/r7rs), install with:
|
||||||
|
|
@ -259,7 +242,6 @@ Needs [r7rs egg](https://wiki.call-cc.org/eggref/5/r7rs), install with:
|
||||||
chicken-install r7rs
|
chicken-install r7rs
|
||||||
|
|
||||||
#### Gauche
|
#### Gauche
|
||||||
|
|
||||||
<a name="dependencies-gauche"></a>
|
<a name="dependencies-gauche"></a>
|
||||||
|
|
||||||
Building depends on libffi.
|
Building depends on libffi.
|
||||||
|
|
@ -269,7 +251,6 @@ Debian/Ubuntu/Mint install with:
|
||||||
apt install libffi-dev
|
apt install libffi-dev
|
||||||
|
|
||||||
#### Racket
|
#### Racket
|
||||||
|
|
||||||
<a name="dependencies-racket"></a>
|
<a name="dependencies-racket"></a>
|
||||||
|
|
||||||
Needs [racket-r7rs](https://github.com/lexi-lambda/racket-r7rs), install with:
|
Needs [racket-r7rs](https://github.com/lexi-lambda/racket-r7rs), install with:
|
||||||
|
|
@ -277,7 +258,6 @@ Needs [racket-r7rs](https://github.com/lexi-lambda/racket-r7rs), install with:
|
||||||
raco pkg install --auto r7rs
|
raco pkg install --auto r7rs
|
||||||
|
|
||||||
#### Kawa
|
#### Kawa
|
||||||
|
|
||||||
<a name="dependencies-kawa"></a>
|
<a name="dependencies-kawa"></a>
|
||||||
|
|
||||||
Kawa Needs at least Java version 22 and jvm flags:
|
Kawa Needs at least Java version 22 and jvm flags:
|
||||||
|
|
@ -288,11 +268,9 @@ Kawa Needs at least Java version 22 and jvm flags:
|
||||||
- \--enable-native-access=ALL-UNNAMED
|
- \--enable-native-access=ALL-UNNAMED
|
||||||
|
|
||||||
## Reference
|
## Reference
|
||||||
|
|
||||||
<a name="reference"></a>
|
<a name="reference"></a>
|
||||||
|
|
||||||
### Types
|
### Types
|
||||||
|
|
||||||
<a name="types"></a>
|
<a name="types"></a>
|
||||||
|
|
||||||
Types are given as symbols, for example 'int8 or 'pointer.
|
Types are given as symbols, for example 'int8 or 'pointer.
|
||||||
|
|
@ -320,13 +298,11 @@ Types are given as symbols, for example 'int8 or 'pointer.
|
||||||
- Callback function
|
- Callback function
|
||||||
|
|
||||||
### Procedures and macros
|
### Procedures and macros
|
||||||
|
|
||||||
<a name="procedures-and-macros"></a>
|
<a name="procedures-and-macros"></a>
|
||||||
|
|
||||||
Some of these are procedures and some macros, it might also change implementation to implementation.
|
Some of these are procedures and some macros, it might also change implementation to implementation.
|
||||||
|
|
||||||
#### pffi-init
|
#### pffi-init
|
||||||
|
|
||||||
<a name="pffi-init"></a>
|
<a name="pffi-init"></a>
|
||||||
|
|
||||||
**pffi-init**
|
**pffi-init**
|
||||||
|
|
@ -335,7 +311,6 @@ Always call this first, on most implementation it does nothing but some implemen
|
||||||
initialisation run.
|
initialisation run.
|
||||||
|
|
||||||
#### pffi-size-of
|
#### pffi-size-of
|
||||||
|
|
||||||
<a name="pffi-size-of"></a>
|
<a name="pffi-size-of"></a>
|
||||||
|
|
||||||
**pffi-size-of** object -> number
|
**pffi-size-of** object -> number
|
||||||
|
|
@ -343,7 +318,6 @@ initialisation run.
|
||||||
Returns the size of the pffi-struct, pffi-enum or pffi-type.
|
Returns the size of the pffi-struct, pffi-enum or pffi-type.
|
||||||
|
|
||||||
#### pffi-align-of
|
#### pffi-align-of
|
||||||
|
|
||||||
<a name="pffi-align-of"></a>
|
<a name="pffi-align-of"></a>
|
||||||
|
|
||||||
**pffi-align-of** type -> number
|
**pffi-align-of** type -> number
|
||||||
|
|
@ -351,7 +325,6 @@ Returns the size of the pffi-struct, pffi-enum or pffi-type.
|
||||||
Returns the align of the type.
|
Returns the align of the type.
|
||||||
|
|
||||||
#### pffi-define-library
|
#### pffi-define-library
|
||||||
|
|
||||||
<a name="pffi-define-library"></a>
|
<a name="pffi-define-library"></a>
|
||||||
|
|
||||||
**pffi-define-library** headers shared-object-name [options] -> object
|
**pffi-define-library** headers shared-object-name [options] -> object
|
||||||
|
|
@ -398,7 +371,6 @@ implementations.
|
||||||
- As '(... and not (list...
|
- As '(... and not (list...
|
||||||
|
|
||||||
#### pffi-pointer-null
|
#### pffi-pointer-null
|
||||||
|
|
||||||
<a name="pffi-pointer-null"></a>
|
<a name="pffi-pointer-null"></a>
|
||||||
|
|
||||||
**pffi-pointer-null** -> pointer
|
**pffi-pointer-null** -> pointer
|
||||||
|
|
@ -406,7 +378,6 @@ implementations.
|
||||||
Returns a new NULL pointer.
|
Returns a new NULL pointer.
|
||||||
|
|
||||||
#### pffi-pointer-null?
|
#### pffi-pointer-null?
|
||||||
|
|
||||||
<a name="pffi-pointer-null"></a>
|
<a name="pffi-pointer-null"></a>
|
||||||
|
|
||||||
**pffi-pointer-null?** pointer -> boolean
|
**pffi-pointer-null?** pointer -> boolean
|
||||||
|
|
@ -414,7 +385,6 @@ Returns a new NULL pointer.
|
||||||
Returns #t if given pointer is null pointer, #f otherwise.
|
Returns #t if given pointer is null pointer, #f otherwise.
|
||||||
|
|
||||||
#### pffi-pointer-allocate
|
#### pffi-pointer-allocate
|
||||||
|
|
||||||
<a name="pffi-pointer-allocate"></a>
|
<a name="pffi-pointer-allocate"></a>
|
||||||
|
|
||||||
**pffi-pointer-allocate** size -> pointer
|
**pffi-pointer-allocate** size -> pointer
|
||||||
|
|
@ -422,7 +392,6 @@ Returns #t if given pointer is null pointer, #f otherwise.
|
||||||
Returns newly allocated pointer of given size.
|
Returns newly allocated pointer of given size.
|
||||||
|
|
||||||
#### pffi-pointer-address
|
#### pffi-pointer-address
|
||||||
|
|
||||||
<a name="pffi-pointer-address"></a>
|
<a name="pffi-pointer-address"></a>
|
||||||
|
|
||||||
**pffi-pointer-address** pointer -> number
|
**pffi-pointer-address** pointer -> number
|
||||||
|
|
@ -430,7 +399,6 @@ Returns newly allocated pointer of given size.
|
||||||
Returns the address of given pointer as number.
|
Returns the address of given pointer as number.
|
||||||
|
|
||||||
#### pffi-pointer?
|
#### pffi-pointer?
|
||||||
|
|
||||||
<a name="pffi-pointer"></a>
|
<a name="pffi-pointer"></a>
|
||||||
|
|
||||||
**pffi-pointer?** object -> boolean
|
**pffi-pointer?** object -> boolean
|
||||||
|
|
@ -438,7 +406,6 @@ Returns the address of given pointer as number.
|
||||||
Returns #t if given object is pointer, #f otherwise.
|
Returns #t if given object is pointer, #f otherwise.
|
||||||
|
|
||||||
#### pffi-pointer-free
|
#### pffi-pointer-free
|
||||||
|
|
||||||
<a name="pffi-pointer-free"></a>
|
<a name="pffi-pointer-free"></a>
|
||||||
|
|
||||||
**pffi-pointer-free** pointer
|
**pffi-pointer-free** pointer
|
||||||
|
|
@ -446,7 +413,6 @@ Returns #t if given object is pointer, #f otherwise.
|
||||||
Frees given pointer.
|
Frees given pointer.
|
||||||
|
|
||||||
#### pffi-pointer-set!
|
#### pffi-pointer-set!
|
||||||
|
|
||||||
<a name="pffi-pointer-set!"></a>
|
<a name="pffi-pointer-set!"></a>
|
||||||
|
|
||||||
**pffi-pointer-set!** pointer type offset value
|
**pffi-pointer-set!** pointer type offset value
|
||||||
|
|
@ -459,7 +425,6 @@ Sets the value on a pointer on given offset. For example:
|
||||||
Would set the offset of 64, on pointer p to value 100.
|
Would set the offset of 64, on pointer p to value 100.
|
||||||
|
|
||||||
#### pffi-pointer-get
|
#### pffi-pointer-get
|
||||||
|
|
||||||
<a name="pffi-pointer-get"></a>
|
<a name="pffi-pointer-get"></a>
|
||||||
|
|
||||||
**pffi-pointer-get** pointer type offset -> object
|
**pffi-pointer-get** pointer type offset -> object
|
||||||
|
|
@ -472,7 +437,6 @@ Gets the value from a pointer on given offset. For example:
|
||||||
> 100
|
> 100
|
||||||
|
|
||||||
#### pffi-string->pointer
|
#### pffi-string->pointer
|
||||||
|
|
||||||
<a name="pffi-string->pointer"></a>
|
<a name="pffi-string->pointer"></a>
|
||||||
|
|
||||||
**pffi-string->pointer** string -> pointer
|
**pffi-string->pointer** string -> pointer
|
||||||
|
|
@ -480,7 +444,6 @@ Gets the value from a pointer on given offset. For example:
|
||||||
Makes pointer out of a given string.
|
Makes pointer out of a given string.
|
||||||
|
|
||||||
#### pffi-pointer->string
|
#### pffi-pointer->string
|
||||||
|
|
||||||
<a name="pffi-pointer->string"></a>
|
<a name="pffi-pointer->string"></a>
|
||||||
|
|
||||||
**pffi-pointer->string** pointer -> string
|
**pffi-pointer->string** pointer -> string
|
||||||
|
|
@ -488,7 +451,6 @@ Makes pointer out of a given string.
|
||||||
Makes string out of a given pointer.
|
Makes string out of a given pointer.
|
||||||
|
|
||||||
#### pffi-struct-make
|
#### pffi-struct-make
|
||||||
|
|
||||||
<a name="pffi-struct-make"></a>
|
<a name="pffi-struct-make"></a>
|
||||||
|
|
||||||
**pffi-struct-make** c-type members . pointer -> pffi-struct
|
**pffi-struct-make** c-type members . pointer -> pffi-struct
|
||||||
|
|
@ -502,7 +464,6 @@ names and types. For example:
|
||||||
C-type argument can be symbol or a string.
|
C-type argument can be symbol or a string.
|
||||||
|
|
||||||
#### pffi-struct-pointer
|
#### pffi-struct-pointer
|
||||||
|
|
||||||
<a name="pffi-struct-pointer"></a>
|
<a name="pffi-struct-pointer"></a>
|
||||||
|
|
||||||
**pffi-struct-pointer** pffi-struct -> pointer
|
**pffi-struct-pointer** pffi-struct -> pointer
|
||||||
|
|
@ -514,7 +475,6 @@ a pointer to foreign functions.
|
||||||
(pffi-struct-pointer s)
|
(pffi-struct-pointer s)
|
||||||
|
|
||||||
#### pffi-struct-offset-get
|
#### pffi-struct-offset-get
|
||||||
|
|
||||||
<a name="pffi-struct-offset-get"></a>
|
<a name="pffi-struct-offset-get"></a>
|
||||||
|
|
||||||
**pffi-struct-offset-get** member-name -> number
|
**pffi-struct-offset-get** member-name -> number
|
||||||
|
|
@ -522,7 +482,6 @@ a pointer to foreign functions.
|
||||||
Returns the offset of a struct member with given name.
|
Returns the offset of a struct member with given name.
|
||||||
|
|
||||||
#### pffi-struct-get
|
#### pffi-struct-get
|
||||||
|
|
||||||
<a name="pffi-struct-get"></a>
|
<a name="pffi-struct-get"></a>
|
||||||
|
|
||||||
**pffi-struct-get** pffi-struct member-name -> object
|
**pffi-struct-get** pffi-struct member-name -> object
|
||||||
|
|
@ -530,7 +489,6 @@ Returns the offset of a struct member with given name.
|
||||||
Returns the value of the givens struct member.
|
Returns the value of the givens struct member.
|
||||||
|
|
||||||
#### pffi-struct-set!
|
#### pffi-struct-set!
|
||||||
|
|
||||||
<a name="pffi-struct-set!"></a>
|
<a name="pffi-struct-set!"></a>
|
||||||
|
|
||||||
**pffi-struct-set!** pffi-struct member-name value
|
**pffi-struct-set!** pffi-struct member-name value
|
||||||
|
|
@ -539,7 +497,6 @@ Sets the value of the givens struct member. It is up to you to make sure that th
|
||||||
correct.
|
correct.
|
||||||
|
|
||||||
#### pffi-array-allocate
|
#### pffi-array-allocate
|
||||||
|
|
||||||
<a name="pffi-array-allocate"></a>
|
<a name="pffi-array-allocate"></a>
|
||||||
|
|
||||||
**pffi-array-allocate** type size
|
**pffi-array-allocate** type size
|
||||||
|
|
@ -547,7 +504,6 @@ correct.
|
||||||
Allocates pointer array of given type and size.
|
Allocates pointer array of given type and size.
|
||||||
|
|
||||||
#### pffi-array?
|
#### pffi-array?
|
||||||
|
|
||||||
<a name="pffi-array"></a>
|
<a name="pffi-array"></a>
|
||||||
|
|
||||||
**pffi-array?** object
|
**pffi-array?** object
|
||||||
|
|
@ -555,7 +511,6 @@ Allocates pointer array of given type and size.
|
||||||
Returns #t of given object is array, #f otherwise.
|
Returns #t of given object is array, #f otherwise.
|
||||||
|
|
||||||
#### pffi-pointer->array
|
#### pffi-pointer->array
|
||||||
|
|
||||||
<a name="pffi-pointer->array"></a>
|
<a name="pffi-pointer->array"></a>
|
||||||
|
|
||||||
**pffi-pointer->array** pointer type size
|
**pffi-pointer->array** pointer type size
|
||||||
|
|
@ -563,7 +518,6 @@ Returns #t of given object is array, #f otherwise.
|
||||||
Converts given pointer to an array of giben type and size.
|
Converts given pointer to an array of giben type and size.
|
||||||
|
|
||||||
#### pffi-array-get
|
#### pffi-array-get
|
||||||
|
|
||||||
<a name="pffi-array-get"></a>
|
<a name="pffi-array-get"></a>
|
||||||
|
|
||||||
**pffi-array-get** array index
|
**pffi-array-get** array index
|
||||||
|
|
@ -571,7 +525,6 @@ Converts given pointer to an array of giben type and size.
|
||||||
Returns the value of given index from given array.
|
Returns the value of given index from given array.
|
||||||
|
|
||||||
#### pffi-array-set!
|
#### pffi-array-set!
|
||||||
|
|
||||||
<a name="pffi-array-set!"></a>
|
<a name="pffi-array-set!"></a>
|
||||||
|
|
||||||
**pffi-array-set!** array index value
|
**pffi-array-set!** array index value
|
||||||
|
|
@ -579,7 +532,6 @@ Returns the value of given index from given array.
|
||||||
Sets the given value of given index in given array.
|
Sets the given value of given index in given array.
|
||||||
|
|
||||||
#### pffi-list->array
|
#### pffi-list->array
|
||||||
|
|
||||||
<a name="pffi-list->array"></a>
|
<a name="pffi-list->array"></a>
|
||||||
|
|
||||||
**pffi-list->array** type list
|
**pffi-list->array** type list
|
||||||
|
|
@ -587,7 +539,6 @@ Sets the given value of given index in given array.
|
||||||
Converts given list into C array of given type.
|
Converts given list into C array of given type.
|
||||||
|
|
||||||
#### pffi-array->list
|
#### pffi-array->list
|
||||||
|
|
||||||
<a name="pffi-array->list"></a>
|
<a name="pffi-array->list"></a>
|
||||||
|
|
||||||
**pffi-array->list** type list length
|
**pffi-array->list** type list length
|
||||||
|
|
@ -595,7 +546,6 @@ Converts given list into C array of given type.
|
||||||
Converts given C array into list of given type and length.
|
Converts given C array into list of given type and length.
|
||||||
|
|
||||||
#### pffi-define
|
#### pffi-define
|
||||||
|
|
||||||
<a name="pffi-define"></a>
|
<a name="pffi-define"></a>
|
||||||
|
|
||||||
**pffi-define** scheme-name shared-object c-name return-type argument-types
|
**pffi-define** scheme-name shared-object c-name return-type argument-types
|
||||||
|
|
@ -609,7 +559,6 @@ Defines a new foreign function to be used from Scheme code. For example:
|
||||||
(c-puts "Message brought to you by FFI!")
|
(c-puts "Message brought to you by FFI!")
|
||||||
|
|
||||||
#### pffi-define-callback
|
#### pffi-define-callback
|
||||||
|
|
||||||
<a name="pffi-define-callback"></a>
|
<a name="pffi-define-callback"></a>
|
||||||
|
|
||||||
**pffi-define-callback** scheme-name return-type argument-types procedure
|
**pffi-define-callback** scheme-name return-type argument-types procedure
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue