diff options
author | Keith Packard <keithp@keithp.com> | 2016-11-15 09:55:22 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-11-17 22:18:39 -0800 |
commit | acfc29f2400cc3c06745edb5ec0c82b82998d3cc (patch) | |
tree | 87d7a10500c9576afb563e315b0855134ce66b47 /src/lisp/ao_lisp_os.h | |
parent | 3d837e52b29da16088fb5ca7921d8bcb99941759 (diff) |
altos/lisp: Evaluate macros once, then smash them into place
This assumes that macros are all pure functions, which should be true
for syntactic macros.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_os.h')
-rw-r--r-- | src/lisp/ao_lisp_os.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lisp/ao_lisp_os.h b/src/lisp/ao_lisp_os.h index b7bf7a2c..5fa3686b 100644 --- a/src/lisp/ao_lisp_os.h +++ b/src/lisp/ao_lisp_os.h @@ -22,13 +22,10 @@ #include <stdlib.h> #include <time.h> -static inline int -ao_lisp_getc() { - return getchar(); -} +extern int ao_lisp_getc(void); static inline void -ao_lisp_os_flush() { +ao_lisp_os_flush(void) { fflush(stdout); } |