1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-31 15:43:01 +00:00

symbolslots now use janet_v vectors, flat structure

This commit is contained in:
Jona Ekenberg
2023-02-01 11:06:33 +01:00
parent 88813c4f87
commit 587aa87d28
9 changed files with 91 additions and 106 deletions

View File

@@ -755,7 +755,7 @@ static JanetSlot janetc_while(JanetFopts opts, int32_t argn, const Janet *argv)
if (janet_truthy(janet_dyn("debug"))) {
janet_array_push(c->local_binds, janet_wrap_array(janet_array(0)));
janet_v_push(c->local_symbols, NULL);
}
janetc_scope(&tempscope, c, JANET_SCOPE_FUNCTION, "while-iife");
@@ -834,7 +834,7 @@ static JanetSlot janetc_fn(JanetFopts opts, int32_t argn, const Janet *argv) {
/* Begin function */
c->scope->flags |= JANET_SCOPE_CLOSURE;
if (janet_truthy(janet_dyn("debug"))) {
janet_array_push(c->local_binds, janet_wrap_array(janet_array(0)));
janet_v_push(c->local_symbols, NULL);
}
janetc_scope(&fnscope, c, JANET_SCOPE_FUNCTION, "function");