diff options
| author | Keith Packard <keithp@keithp.com> | 2016-11-15 09:55:22 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-02-20 11:16:51 -0800 | 
| commit | 974717eb9dad105c9897ee24f953d98d57eaec77 (patch) | |
| tree | ea77eec1b39f859353f17ad384950f6bd982c569 /src/lisp/ao_lisp_os.h | |
| parent | b3b5bd2c14cfcde6c551a87ee6da08a53f1e4bc6 (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);  } | 
