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>2017-02-20 11:16:50 -0800
commit417161dbb36323b5a6572859dedad02ca92fc65c (patch)
treee8d8476ec82339bb655dbd0c9d1f95cba90caadc /src/lisp/ao_lisp_read.c
parent0ee44c8e4bf5dabe6a97bf76b366c8b767c387f8 (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;
}