diff options
author | dan <[email protected]> | 2023-06-02 16:22:56 -0400 |
---|---|---|
committer | dan <[email protected]> | 2023-06-02 16:22:56 -0400 |
commit | 60f09fdabfe942d2cb2d2cdb1537318ff2e89e7b (patch) | |
tree | efa6e418c9a6fa0e1cc6dd675507214ba1950787 | |
parent | ac8a2fd77f7661b60cf2b272090ece67f65951db (diff) | |
download | forth-60f09fdabfe942d2cb2d2cdb1537318ff2e89e7b.tar.gz forth-60f09fdabfe942d2cb2d2cdb1537318ff2e89e7b.tar.bz2 forth-60f09fdabfe942d2cb2d2cdb1537318ff2e89e7b.zip |
refactor: always output via buffer
-rw-r--r-- | forthmachine_optable.c | 4 |
1 files changed, 0 insertions, 4 deletions
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) { |