vec -> ivec

I'm going to implement a normal stable vector instead of an inline
vector so we have both options for use.  I think that's smarter than
just sticking to one.
This commit is contained in:
2025-08-20 22:19:14 +01:00
parent df558da7e1
commit 55293ae396
7 changed files with 95 additions and 94 deletions

View File

@@ -35,7 +35,7 @@ lisp_t *cons(sys_t *sys, lisp_t *car, lisp_t *cdr)
lisp_t *make_vec(sys_t *sys, u64 capacity)
{
lvec_t *lvec = calloc(1, sizeof(*lvec));
vec_make(&lvec->data, capacity);
ivec_make(&lvec->data, capacity);
lisp_t *ptr = tag_vec(lvec);
sys_register(sys, ptr);
return ptr;