aboutsummaryrefslogtreecommitdiffstats
path: root/stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'stack.h')
-rw-r--r--stack.h4
1 files changed, 3 insertions, 1 deletions
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);