From 48c02f4fccd13cf329594988a19a4edd1fce4774 Mon Sep 17 00:00:00 2001
From: dan <me@danrh.co.uk>
Date: Sat, 3 Jun 2023 14:41:14 -0400
Subject: feat: forthmachine and stack errors handled with error handlers, not
 just by printing

---
 stack.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'stack.h')

diff --git a/stack.h b/stack.h
index 3978d0a..b4319ec 100644
--- a/stack.h
+++ b/stack.h
@@ -1,5 +1,6 @@
 #include <stdlib.h>
 #include <stdio.h>
+#include "errorhandler.h"
 
 #ifndef STACK_H
 #define STACK_H
@@ -10,9 +11,10 @@ typedef struct {
     int size;
     int maxsize;
     stackitem* start;
+    errorhandler errorhandler;
 } stack;
 
-stack* stack_new();
+stack* stack_new(errorhandler errorhandler);
 
 void stack_free(stack* s);
 
-- 
cgit v1.2.3