mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-15 08:10:17 +02:00
Simple vectors are just vectors
* doc/ref/api-data.texi: Remove references to 'simple vectors'. * libguile/vectors.h (SCM_VECTOR_REF,SCM_VECTOR_SET, SCM_VECTOR_LENGHT): Renamed from SCM_SIMPLE_VECTOR_REF, SCM_SIMPLE_VECTOR_SET, SCM_SIMPLE_VECTOR_LENGTH. (scm_is_simple_vector): Remove. Elsewhere fix uses of SCM_SIMPLE_VECTOR_xxx or scm_is_simple_vector.
This commit is contained in:
parent
6c97c8108e
commit
40dbe69be5
27 changed files with 305 additions and 291 deletions
|
@ -293,13 +293,13 @@ SCM_DEFINE (scm_regexp_exec, "regexp-exec", 2, 2, 0,
|
|||
/* The match vector must include a cell for the string that was matched,
|
||||
so add 1. */
|
||||
mvec = scm_c_make_vector (nmatches + 1, SCM_UNSPECIFIED);
|
||||
SCM_SIMPLE_VECTOR_SET(mvec,0, str);
|
||||
SCM_VECTOR_SET(mvec,0, str);
|
||||
for (i = 0; i < nmatches; ++i)
|
||||
if (matches[i].rm_so == -1)
|
||||
SCM_SIMPLE_VECTOR_SET(mvec, i+1,
|
||||
SCM_VECTOR_SET(mvec, i+1,
|
||||
scm_cons (scm_from_int (-1), scm_from_int (-1)));
|
||||
else
|
||||
SCM_SIMPLE_VECTOR_SET(mvec, i+1,
|
||||
SCM_VECTOR_SET(mvec, i+1,
|
||||
scm_cons (scm_from_long (matches[i].rm_so + offset),
|
||||
scm_from_long (matches[i].rm_eo + offset)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue