diff options
author | Daniel Llorens <daniel.llorens@bluewin.ch> | 2013-04-11 18:11:35 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2014-02-08 18:26:49 +0100 |
commit | d747313100cafb2d2e05c84b146e70df295d0931 (patch) | |
tree | 1729b72db59b2b63e61b5a81e68242300109f720 /libguile/validate.h | |
parent | a32488ba13e81e51c1fef9fb057bdd805e8b3d72 (diff) | |
download | guile-d747313100cafb2d2e05c84b146e70df295d0931.tar.gz |
Change uses of scm_is_simple_vector to scm_is_vector
* libguile/filesys.c, libguile/random.c, libguile/stime.c, libguile/trees.c,
libguile/validate.h: use scm_is_vector instead of scm_is_simple_vector.
* libguile/sort.c (scm_sort_x, scm_sort, scm_stable_sort_x)
(scm_stable_sort): Remove scm_is_vector check; scm_is_array is
sufficient.
* test-suite/tests/arrays.test: Fix header.
* test-suite/tests/random.test: New coverage test covering
random:normal-vector!.
* test-suite/Makefile.am: Include random.test in make check.
Diffstat (limited to 'libguile/validate.h')
-rw-r--r-- | libguile/validate.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libguile/validate.h b/libguile/validate.h index 68ff3744d..6d57b9e32 100644 --- a/libguile/validate.h +++ b/libguile/validate.h @@ -4,7 +4,7 @@ #define SCM_VALIDATE_H /* Copyright (C) 1999, 2000, 2001, 2002, 2004, 2006, 2007, 2009, - * 2011, 2012, 2013 Free Software Foundation, Inc. + * 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -358,13 +358,12 @@ #define SCM_VALIDATE_VECTOR(pos, v) \ do { \ - SCM_ASSERT (scm_is_simple_vector (v), v, pos, FUNC_NAME); \ + SCM_ASSERT (scm_is_vector (v), v, pos, FUNC_NAME); \ } while (0) #define SCM_VALIDATE_VECTOR_OR_DVECTOR(pos, v) \ do { \ - SCM_ASSERT ((scm_is_simple_vector (v) \ - || (scm_is_true (scm_f64vector_p (v)))), \ + SCM_ASSERT (scm_is_vector (v) || scm_is_true (scm_f64vector_p (v)), \ v, pos, FUNC_NAME); \ } while (0) |