fix bitvectors after the array handle refactoring
authorAndy Wingo <wingo@pobox.com>
Thu, 17 Sep 2009 11:52:09 +0000 (13:52 +0200)
committerAndy Wingo <wingo@pobox.com>
Fri, 18 Sep 2009 14:27:32 +0000 (16:27 +0200)
commitf5a51caec1bf1900b269da6e07fe466199372970
treee554326259aa903c6e450e0e10ed36208f5b9d81
parentc5923112fed7b92ff5f1eeea03c74117b2f75490
fix bitvectors after the array handle refactoring

* libguile/uniform.h (scm_array_handle_uniform_element_bit_size): New
  public accessor.

* libguile/uniform.c (scm_array_handle_uniform_element_size): Better
  errors in non-byte-aligned arrays.
  (scm_uniform_vector_element_type, scm_uniform_vector_element_size)
  (scm_c_uniform_vector_ref, scm_c_uniform_vector_set_x):
  (scm_uniform_vector_to_list): Don't require byte-aligned access.

* libguile/bytevectors.c (scm_uniform_array_to_bytevector):
* libguile/arrays.c (scm_from_contiguous_typed_array):  Fix for
  uniform arrays whose element size is not a multiple of the byte size.
libguile/arrays.c
libguile/bytevectors.c
libguile/uniform.c
libguile/uniform.h