all repos — hex @ d7a1bbcf8d262c2ef040a4508e80bf8430badb79

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Fixes
Fabio Cevasco h3rald@h3rald.com
Wed, 01 Jan 2025 16:03:38 +0100
commit

d7a1bbcf8d262c2ef040a4508e80bf8430badb79

parent

42b359fe967f427a5f7f91f04bbbdbf99a2f9272

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/interpreter.csrc/interpreter.c

@@ -22,6 +22,8 @@ context->stack_trace = malloc(sizeof(hex_stack_trace_t));

context->stack_trace->entries = malloc(HEX_STACK_TRACE_SIZE * sizeof(hex_token_t)); context->stack_trace->start = 0; context->stack_trace->size = 0; + context->cleanup_stack = malloc(sizeof(hex_cleanup_stack_t)); + context->cleanup_stack->entries = {NULL}; context->cleanup_stack->count = 0; context->settings = malloc(sizeof(hex_settings_t)); context->settings->debugging_enabled = 0;