From 31eacdeefe6099e68dd8596faab8108671e4c6a5 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Fri, 11 Apr 2025 23:37:41 +0000 Subject: refactor(core): Move SandConfig into own header file --- src/core/state.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/core/state.h') diff --git a/src/core/state.h b/src/core/state.h index 406a79c..85c604b 100644 --- a/src/core/state.h +++ b/src/core/state.h @@ -4,20 +4,15 @@ // This module defines the evaluator state. This is the "world" in Sand. // Multiple evaluator states can coexist as they are totally separate. -#include - -typedef void (* SandPrintHandler)(const char *message, size_t length); +#include "config.h" -typedef struct { - SandPrintHandler print_handler; -} SandConfig; +#include // This data structure should be treated as entirely opaque by consuming code. typedef struct { SandConfig config; } SandState; - SandState sand_create_state(SandConfig config); void sand_destroy_state(SandState *); -- cgit v1.2.3