mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 23:50:19 +02:00
New functions: scm_c_make_vector, scm_c_make_hash_table.
This commit is contained in:
parent
b8446ce883
commit
00ffa0e7d6
22 changed files with 87 additions and 52 deletions
|
@ -254,7 +254,7 @@ SCM_DEFINE (scm_regexp_exec, "regexp-exec", 2, 2, 0,
|
|||
int i;
|
||||
/* The match vector must include a cell for the string that was matched,
|
||||
so add 1. */
|
||||
mvec = scm_make_vector (SCM_MAKINUM (nmatches + 1), SCM_UNSPECIFIED);
|
||||
mvec = scm_c_make_vector (nmatches + 1, SCM_UNSPECIFIED);
|
||||
SCM_VELTS(mvec)[0] = str;
|
||||
for (i = 0; i < nmatches; ++i)
|
||||
if (matches[i].rm_so == -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue