From f633ca9108a6bd90408930eeb367a33deeb6b91f Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 27 Jan 2025 22:02:13 -0500 Subject: configure stack and dict sizes --- x86/main.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'x86/main.c') diff --git a/x86/main.c b/x86/main.c index e6230de..1415cc2 100644 --- a/x86/main.c +++ b/x86/main.c @@ -18,19 +18,11 @@ #include -void foci_putchar(int ch) -{ - putchar(ch); -} - -int foci_getchar(void) -{ - return getchar(); -} +static intptr_t dict[8192]; int main() { - init(); + init(dict); for (;;) { interpret(); @@ -40,3 +32,13 @@ int main() return 0; } +void foci_putchar(int ch) +{ + putchar(ch); +} + +int foci_getchar(void) +{ + return getchar(); +} + -- cgit v1.2.3