mirror of
https://github.com/janet-lang/janet
synced 2025-11-13 22:07:13 +00:00
Begin work on new memory layout for all objects and GC.
The layout should actually be very similar to the old layout, but the code will be much easier to change and should be more portable.
This commit is contained in:
@@ -348,7 +348,7 @@ static int comment(JanetParser *p, JanetParseState *state, uint8_t c) {
|
||||
|
||||
static Janet close_tuple(JanetParser *p, JanetParseState *state, int32_t flag) {
|
||||
Janet *ret = janet_tuple_begin(state->argn);
|
||||
janet_tuple_flag(ret) = flag;
|
||||
janet_tuple_flag(ret) |= flag;
|
||||
for (int32_t i = state->argn - 1; i >= 0; i--)
|
||||
ret[i] = p->args[--p->argcount];
|
||||
return janet_wrap_tuple(janet_tuple_end(ret));
|
||||
|
||||
Reference in New Issue
Block a user