From 48c02f4fccd13cf329594988a19a4edd1fce4774 Mon Sep 17 00:00:00 2001 From: dan Date: Sat, 3 Jun 2023 14:41:14 -0400 Subject: feat: forthmachine and stack errors handled with error handlers, not just by printing --- forthmachine_optable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forthmachine_optable.c') diff --git a/forthmachine_optable.c b/forthmachine_optable.c index 08241ed..8164d5c 100644 --- a/forthmachine_optable.c +++ b/forthmachine_optable.c @@ -316,7 +316,7 @@ void optable_defineop(optable* optable, char *input, int* starti) { // get code int wordi = 0; char wordbuf[WORD_LEN_LIMIT]; - stack* ifcounter = stack_new(); + stack* ifcounter = stack_new(NULL); while (input[i] != ';' && opsi < DEFINED_FUNC_MAX_LENGTH) { char c = input[i++]; if (notdelim(c) && wordi < WORD_LEN_LIMIT) { -- cgit v1.2.3