more fixes to equal? for arrays
authorAndy Wingo <wingo@pobox.com>
Wed, 31 Mar 2010 22:18:44 +0000 (00:18 +0200)
committerAndy Wingo <wingo@pobox.com>
Wed, 31 Mar 2010 22:25:06 +0000 (00:25 +0200)
commita587d6a97338a0fd62173e60581ff07f55ec2042
treee11f29648cbd5efcfeeec2d698f1e7065a894401
parent92d33877d9f8523eaebab75373a30f161e6cc1e8
more fixes to equal? for arrays

* libguile/array-map.c (array_compare, scm_array_equal_p): Rewrite as
  something that operates on the generic array handle infrastructure.
  Based on array->list.
  (scm_i_array_equal_p): Change the docs, as array-equal? is now the same
  as equal?, except that it typechecks its args.

* doc/ref/api-compound.texi (Array Procedures): Update array-equal?
  docs.

* libguile/deprecated.h:
* libguile/deprecated.c (scm_raequal): Deprecate.

* libguile/bytevectors.c (scm_bytevector_eq_p): Bugfix: bytevectors are
  bytevector=? only if their element type is the same.

* libguile/eq.c (scm_equal_p): Only dispatch to scm_array_equal_p if
  both args are arrays (generically).

* test-suite/tests/arrays.test ("equal?"): Add some more tests.
doc/ref/api-compound.texi
libguile/array-map.c
libguile/array-map.h
libguile/bytevectors.c
libguile/deprecated.c
libguile/deprecated.h
libguile/eq.c
test-suite/tests/arrays.test