vec: is_inlined -> not_inlined

If you allocate a vector on the stack and default initialise
it (i.e. {0}), then by default "is_inlined" = 0.  This is bad, as
technically speaking we should expect the vector to attempt to use
it's small inline buffer for vector operations before going onto the
heap - this will mess up our functions.  So here I adjust the name to
make default stack based allocation a bit easier.
This commit is contained in:
2026-01-22 16:37:58 +00:00
parent 865ab22fdc
commit 6ec0108566
3 changed files with 13 additions and 12 deletions

View File

@@ -21,12 +21,13 @@
void sys_init(sys_t *sys)
{
memset(sys, 0, sizeof(*sys));
vec_init(&sys->conses, 0);
}
void sys_register(sys_t *sys, lisp_t *ptr)
{
// Simply append it to the list of currently active conses
vec_append(&sys->conses, ptr, sizeof(ptr));
vec_append(&sys->conses, &ptr, sizeof(&ptr));
}
void sys_cleanup(sys_t *sys)