~ chicken-core (chicken-5) 13af01d3e2e55c60a60a7cd06b7ea3a0540a7bc7


commit 13af01d3e2e55c60a60a7cd06b7ea3a0540a7bc7
Author:     felix <felix@call-with-current-continuation.org>
AuthorDate: Mon Oct 5 11:55:20 2020 +0200
Commit:     felix <felix@call-with-current-continuation.org>
CommitDate: Mon Oct 5 12:02:53 2020 +0200

    added C_bytevector to manual ("C interface"), added C_SIZEOF_BYTEVECTOR and
    some missing descriptions to C_SIZEOF_... macros.

diff --git a/manual/C interface b/manual/C interface
index f8c07d4b..b7deabff 100644
--- a/manual/C interface	
+++ b/manual/C interface	
@@ -393,6 +393,10 @@ accessor macros instead).
 
  [C function] C_word C_vector (C_word **ptr, int length, ...)
 
+===== C_bytevector
+
+ [C function] C_word C_bytevector (C_word **ptr, int length, C_char *data)
+
 ===== C_structure
 
  [C function] C_word C_structure (C_word **ptr, int length, ...)
@@ -516,10 +520,20 @@ and can also be simulated by declaring a stack-allocated array of
 
  [C macro] int C_SIZEOF_LIST (int length)
 
+Returns the size in words needed for allocation of a list with ''length'' elements.
+
 ===== C_SIZEOF_STRING
 
  [C macro] int C_SIZEOF_STRING (int length)
 
+Returns the size in words needed for allocation of a string with ''length'' characters.
+
+===== C_SIZEOF_BYTEVECTOR
+
+ [C macro] int C_SIZEOF_BYTEVECTOR (int length)
+
+Returns the size in words needed for allocation of a bytevector with ''length'' bytes of data.
+
 ===== C_SIZEOF_VECTOR
 
  [C macro] int C_SIZEOF_VECTOR (int length)
Trap