diff options
author | Andy Wingo <wingo@pobox.com> | 2014-02-08 13:52:21 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2014-02-08 14:28:07 +0100 |
commit | dc65b88d839c326889618112c4870ad3a64e9446 (patch) | |
tree | aa6f0ef14ab3acbe1c389d5f84af23cd2ff4fe2e /libguile/generalized-arrays.h | |
parent | b9b88351ea2c4b43a6f90938554dc5693b17e328 (diff) | |
download | guile-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