bytevectors: Add a C-friendly API.
authorLudovic Courtès <ludo@gnu.org>
Sun, 21 Jun 2009 21:16:57 +0000 (23:16 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 21 Jun 2009 23:05:43 +0000 (01:05 +0200)
commit404bb5f87b66709206507acdf7b899101185a7a0
treee893992fa46a837112c2f69550d4825afbcf12db
parent2d34e9244b8b35f62d086a88db749718a2a1a3b4
bytevectors: Add a C-friendly API.

* doc/ref/api-data.texi (Bytevector Manipulation): Add
  `scm_is_bytevector ()', `scm_c_bytevector_length ()',
  `scm_c_bytevector_length ()', and `scm_c_bytevector_set_x ()'.

* libguile/bytevectors.c (scm_is_bytevector, scm_c_bytevector_length,
  scm_c_bytevector_ref, scm_c_bytevector_set_x): New functions.
  (scm_bytevector_p): Use `scm_is_bytevector ()'.
  (scm_bytevector_length): Use `scm_c_bytevector_length ()'.

* libguile/bytevectors.h (scm_is_bytevector, scm_c_bytevector_length,
  scm_c_bytevector_ref, scm_c_bytevector_set_x): New declarations.
doc/ref/api-data.texi
libguile/bytevectors.c
libguile/bytevectors.h