summaryrefslogtreecommitdiff
path: root/libguile/generalized-arrays.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2014-02-08 13:52:21 +0100
committerAndy Wingo <wingo@pobox.com>2014-02-08 14:28:07 +0100
commitdc65b88d839c326889618112c4870ad3a64e9446 (patch)
treeaa6f0ef14ab3acbe1c389d5f84af23cd2ff4fe2e /libguile/generalized-arrays.h
parentb9b88351ea2c4b43a6f90938554dc5693b17e328 (diff)
downloadguile-dc65b88d839c326889618112c4870ad3a64e9446.tar.gz
Simplify srfi-4 C implementation
* libguile/srfi-4.c (DEFINE_SRFI_4_C_FUNCS): In the raw element accessors (e.g scm_u32vector_writable_elements), only permit bytevectors, as the constructors will only make bytevectors. This harmonizes with the Scheme interfaces as well, which expect packed bytevectors. (scm_make_srfi_4_vector): Knowing that the new value is a bytevector with base 0 and inc 1, simplify initialization.
Diffstat (limited to 'libguile/generalized-arrays.h')
0 files changed, 0 insertions, 0 deletions