aboutsummaryrefslogtreecommitdiffstats
path: root/x86/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'x86/main.c')
-rw-r--r--x86/main.c22
1 files changed, 12 insertions, 10 deletions
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 <stdio.h>
-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();
+}
+