diff options
author | dan <[email protected]> | 2023-06-02 23:02:50 -0400 |
---|---|---|
committer | dan <[email protected]> | 2023-06-02 23:02:50 -0400 |
commit | f130b76fabb440b02c418a537074ec80489a9480 (patch) | |
tree | 4f462a847c24e62111e880fa330dcebab4bde3dc /forthmachine.h | |
parent | b6f1237fb2dd391c399b6c6d294a80d969b9dbfa (diff) | |
download | forth-f130b76fabb440b02c418a537074ec80489a9480.tar.gz forth-f130b76fabb440b02c418a537074ec80489a9480.tar.bz2 forth-f130b76fabb440b02c418a537074ec80489a9480.zip |
refactor: delete unused outputbuffer and outputline, add prefix to optype enum
Diffstat (limited to 'forthmachine.h')
-rw-r--r-- | forthmachine.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/forthmachine.h b/forthmachine.h index 28f3932..de59fc5 100644 --- a/forthmachine.h +++ b/forthmachine.h @@ -13,13 +13,9 @@ typedef struct optable optable; typedef struct wordop wordop; typedef struct forthmachine forthmachine; - typedef void (*stackop)(forthmachine* fm); typedef void (*directiveop)(forthmachine* fm, int len, char* line, int* i); -extern char* outputbuffer; -extern int outputline; - typedef enum { compileditem_stackop = 0, compileditem_literal = 1, @@ -38,8 +34,8 @@ typedef struct { } compileditem; typedef enum { - builtin = 0, - compiled = 1, + optype_builtin = 0, + optype_compiled = 1, } optype; struct wordop { |