summaryrefslogtreecommitdiff
path: root/src/lisp/ao_lisp_read.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-09 16:22:43 -0800
committerKeith Packard <keithp@keithp.com>2016-11-17 22:18:39 -0800
commita3535e28a74055c3b303dbb4111cb3d38c2817e2 (patch)
treeedeb6a0e0d79f4adfa50c34fd7c5dcb44bcd7477 /src/lisp/ao_lisp_read.c
parente503e46f5e9ca57b7a7d976b2ee02a3d7812bc92 (diff)
altos/lisp: Clean up OS integration bits, add defun
Provide an abstraction for the OS interface so that it can build more cleanly on Linux and AltOS. Add defun macro. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_read.c')
-rw-r--r--src/lisp/ao_lisp_read.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/lisp/ao_lisp_read.c b/src/lisp/ao_lisp_read.c
index bc1eb36b..3a2ef7f1 100644
--- a/src/lisp/ao_lisp_read.c
+++ b/src/lisp/ao_lisp_read.c
@@ -156,19 +156,7 @@ lex_get()
c = lex_unget_c;
lex_unget_c = 0;
} else {
-#if AO_LISP_ALTOS
- static uint8_t at_eol;
-
- if (at_eol) {
- ao_cmd_readline();
- at_eol = 0;
- }
- c = ao_cmd_lex();
- if (c == '\n')
- at_eol = 1;
-#else
- c = getchar();
-#endif
+ c = ao_lisp_getc();
}
return c;
}