summaryrefslogtreecommitdiff
path: root/libguile/srfi-4.i.c
diff options
context:
space:
mode:
authorMarius Vollmer <mvo@zagadka.de>2004-11-02 19:34:30 +0000
committerMarius Vollmer <mvo@zagadka.de>2004-11-02 19:34:30 +0000
commit90d4368c88e5dc8dcfd0a54c35872b65a691333e (patch)
treeba26893f9f263315ad8079435311095913e4cb03 /libguile/srfi-4.i.c
parentf738b51d253498b01a9638f857ebb83e68b1d133 (diff)
downloadguile-90d4368c88e5dc8dcfd0a54c35872b65a691333e.tar.gz
(coerce_to_uvec, scm_any_to_u8vector, etc): New.
(scm_uniform_element_size, scm_uniform_vector_length): Do no longer handle old-style uniform vectors.
Diffstat (limited to 'libguile/srfi-4.i.c')
-rw-r--r--libguile/srfi-4.i.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libguile/srfi-4.i.c b/libguile/srfi-4.i.c
index ca181a1df..755589f38 100644
--- a/libguile/srfi-4.i.c
+++ b/libguile/srfi-4.i.c
@@ -127,6 +127,17 @@ SCM_DEFINE (F(scm_list_to_,TAG,vector), "list->"S(TAG)"vector", 1, 0, 0,
}
#undef FUNC_NAME
+SCM_DEFINE (F(scm_any_to_,TAG,vector), "any->"S(TAG)"vector", 1, 0, 0,
+ (SCM obj),
+ "Convert @var{obj}, which can be a list, vector, or\n"
+ "homogenous vector, to a numeric homogenous vector of\n"
+ "type " S(TAG)".")
+#define FUNC_NAME s_F(scm_any_to_,TAG,vector)
+{
+ return coerce_to_uvec (TYPE, obj);
+}
+#undef FUNC_NAME
+
CTYPE *
F(scm_,TAG,vector_elements) (SCM obj)
{