Updated documentation
This commit is contained in:
parent
fedc4cb571
commit
8ca2716452
|
|
@ -128,7 +128,7 @@ to being portable by conforming to some specification.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Either download the latest release from
|
Eithe download the latest release from
|
||||||
[https://git.sr.ht/~retropikzel/foreign-c/refs](https://git.sr.ht/~retropikzel/foreign-c/refs)
|
[https://git.sr.ht/~retropikzel/foreign-c/refs](https://git.sr.ht/~retropikzel/foreign-c/refs)
|
||||||
or git clone, preferably with a tag, and copy the _foreign_ directory to your
|
or git clone, preferably with a tag, and copy the _foreign_ directory to your
|
||||||
library directory.
|
library directory.
|
||||||
|
|
@ -325,7 +325,7 @@ Example:
|
||||||
### c-bytevector
|
### c-bytevector
|
||||||
|
|
||||||
Foreign-c c-bytevector interface is copied from R6RS bytevectors, with some
|
Foreign-c c-bytevector interface is copied from R6RS bytevectors, with some
|
||||||
added functionality for C null pointers.
|
added functionality for C null pointers and manual memory management.
|
||||||
|
|
||||||
(**make-c-null**)
|
(**make-c-null**)
|
||||||
|
|
||||||
|
|
@ -343,8 +343,8 @@ Frees _c-bytevector_ from memory.
|
||||||
|
|
||||||
Calls _thunk_ with address pointer of _c-bytevector_.
|
Calls _thunk_ with address pointer of _c-bytevector_.
|
||||||
|
|
||||||
Since the support for calling C functions taking pointer address arguments, the
|
Since the support for calling C functions taking pointer address arguments,
|
||||||
ones you would prefix with &, varies, some additional ceremony is needed on
|
ones prefixrd with & in C, varies, some additional ceremony is needed on
|
||||||
the Scheme side.
|
the Scheme side.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue