feat: abstract I/O and strings for freestanding compilation

Co-authored-by: aider (openrouter/moonshotai/kimi-k2.6) <aider@aider.chat>
This commit is contained in:
2026-05-04 10:17:43 +03:00
parent 19c8608c76
commit dbf4eb5d0e
8 changed files with 216 additions and 42 deletions
+1 -2
View File
@@ -1,6 +1,6 @@
#include "forth.h"
int main(void) {
void forth_run(void) {
here = user_mem;
// Hidden words first
@@ -104,5 +104,4 @@ int main(void) {
// Start outer interpreter
outer_interpreter();
return 0;
}