Refactor array-contents
authorDaniel Llorens <daniel.llorens@bluewin.ch>
Fri, 19 Apr 2013 23:27:42 +0000 (01:27 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 10 Feb 2014 20:18:48 +0000 (21:18 +0100)
commitc545f7164a80586ac287c551b089101387319e8c
tree72d05bbea781cb50e8b1940e1da67ed85b5d262a
parentdd60e9348ea6ff1e0e12025621f44dd8e9d5094b
Refactor array-contents

* libguile/arrays.c (scm_array_contents): Branch cases not on
  scm_is_generalized_vector but on SCM_I_ARRAYP. Thus lbnd!=0, which
  could happen with scm_is_generalized_vector, never appears in the
  output.
* test-suite/tests/arrays.test: Test array-contents.
libguile/arrays.c
test-suite/tests/arrays.test