diff options
author | dan <[email protected]> | 2023-06-03 14:41:14 -0400 |
---|---|---|
committer | dan <[email protected]> | 2023-06-03 14:41:14 -0400 |
commit | 48c02f4fccd13cf329594988a19a4edd1fce4774 (patch) | |
tree | a92d6af027aa5b9d3368801b770179cc83a928f3 /forthmachine_optable.c | |
parent | f130b76fabb440b02c418a537074ec80489a9480 (diff) | |
download | forth-48c02f4fccd13cf329594988a19a4edd1fce4774.tar.gz forth-48c02f4fccd13cf329594988a19a4edd1fce4774.tar.bz2 forth-48c02f4fccd13cf329594988a19a4edd1fce4774.zip |
feat: forthmachine and stack errors handled with error handlers, not just by printing
Diffstat (limited to 'forthmachine_optable.c')
-rw-r--r-- | forthmachine_optable.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |