Updated documentation

This commit is contained in:
retropikzel 2025-05-03 07:13:30 +03:00
parent 91d7605938
commit 0278124598
2 changed files with 13 additions and 14 deletions

View File

@ -17,7 +17,16 @@ to being portable by conforming to some specification.
- [Documentation](#documentation) - [Documentation](#documentation)
- [Types](#types) - [Types](#types)
- [Primitives 1](#primitives-1) - [Primitives 1](#primitives-1)
- c-type-size
- define-c-library
- define-c-procedure
- c-bytevector?
- c-bytevector-u8-set!
- c-bytevector-u8-ref
- c-bytevector-pointer-set!
- c-bytevector-pointer-ref
- [Primitives 2](#primitives-2) - [Primitives 2](#primitives-2)
- define-c-callback
- [c-bytevector](#c-bytevector) - [c-bytevector](#c-bytevector)
- [Accessors](#accessors) - [Accessors](#accessors)
- [Environment variables](#environment-variables) - [Environment variables](#environment-variables)
@ -313,18 +322,6 @@ Stores the byte in element k of c-bytevector.
If K is not a valid index of c-bytevector the behaviour is undefined. If K is not a valid index of c-bytevector the behaviour is undefined.
Returns the byte at index k of c-bytevector.
(**c-bytevector-u8-set!** _c-bytevector_ _k_ _byte_)
If K is not a valid index of c-bytevector the behaviour is undefined.
Stores the byte in element k of c-bytevector.
(**c-bytevector-u8-ref** _c-bytevector_ _k_)
If K is not a valid index of c-bytevector the behaviour is undefined.
Returns the byte at index k of c-bytevector. Returns the byte at index k of c-bytevector.
c-bytevector-s16-set! c-bytevector-s16-set!
c-bytevector-s16-ref c-bytevector-s16-ref

View File

@ -207,17 +207,19 @@
(ypsilon c-ffi) (ypsilon c-ffi)
(ypsilon c-types) (ypsilon c-types)
(only (core) define-macro syntax-case)))) (only (core) define-macro syntax-case))))
(export ;;;; Primitives (export ;;;; Primitives 1
c-type-size c-type-size
define-c-library define-c-library
define-c-procedure define-c-procedure
define-c-callback
c-bytevector? c-bytevector?
c-bytevector-u8-set! c-bytevector-u8-set!
c-bytevector-u8-ref c-bytevector-u8-ref
c-bytevector-pointer-set! c-bytevector-pointer-set!
c-bytevector-pointer-ref c-bytevector-pointer-ref
;;;; Primitives 2
define-c-callback
;;;; c-bytevector ;;;; c-bytevector
make-c-null make-c-null
c-null? c-null?