From 0278124598dabb14367f35ada8036ea38986ccb5 Mon Sep 17 00:00:00 2001 From: retropikzel Date: Sat, 3 May 2025 07:13:30 +0300 Subject: [PATCH] Updated documentation --- README.md | 21 +++++++++------------ foreign/c.sld | 6 ++++-- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index ac8ab6c..6883155 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,16 @@ to being portable by conforming to some specification. - [Documentation](#documentation) - [Types](#types) - [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) + - define-c-callback - [c-bytevector](#c-bytevector) - [Accessors](#accessors) - [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. -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. c-bytevector-s16-set! c-bytevector-s16-ref diff --git a/foreign/c.sld b/foreign/c.sld index e1041a0..72e9969 100644 --- a/foreign/c.sld +++ b/foreign/c.sld @@ -207,17 +207,19 @@ (ypsilon c-ffi) (ypsilon c-types) (only (core) define-macro syntax-case)))) - (export ;;;; Primitives + (export ;;;; Primitives 1 c-type-size define-c-library define-c-procedure - define-c-callback c-bytevector? c-bytevector-u8-set! c-bytevector-u8-ref c-bytevector-pointer-set! c-bytevector-pointer-ref + ;;;; Primitives 2 + define-c-callback + ;;;; c-bytevector make-c-null c-null?