From f130b76fabb440b02c418a537074ec80489a9480 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 2 Jun 2023 23:02:50 -0400 Subject: refactor: delete unused outputbuffer and outputline, add prefix to optype enum --- forthmachine.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'forthmachine.h') 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 { -- cgit v1.2.3