diff options
author | Marius Vollmer <mvo@zagadka.de> | 2004-11-02 19:34:30 +0000 |
---|---|---|
committer | Marius Vollmer <mvo@zagadka.de> | 2004-11-02 19:34:30 +0000 |
commit | 90d4368c88e5dc8dcfd0a54c35872b65a691333e (patch) | |
tree | ba26893f9f263315ad8079435311095913e4cb03 /libguile/srfi-4.i.c | |
parent | f738b51d253498b01a9638f857ebb83e68b1d133 (diff) | |
download | guile-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.c | 11 |
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) { |