From 60f09fdabfe942d2cb2d2cdb1537318ff2e89e7b Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 2 Jun 2023 16:22:56 -0400 Subject: refactor: always output via buffer --- forthmachine_optable.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'forthmachine_optable.c') diff --git a/forthmachine_optable.c b/forthmachine_optable.c index 9ac925c..2bfecfc 100644 --- a/forthmachine_optable.c +++ b/forthmachine_optable.c @@ -219,13 +219,9 @@ static void dup(forthmachine* fm) { static void forthmachine_output(forthmachine* fm, stackitem v) { -if (fm->outputbuffer) { char x[WORD_LEN_LIMIT]; sprintf(x, "%d\n", v); strcat(fm->outputbuffer, x); // TODO: fix: UNSAFE! -} else { - printf("%d\n", v); -} } static void popout(forthmachine* fm) { -- cgit v1.2.3