summaryrefslogtreecommitdiff
path: root/src/lisp/ao_lisp_make_const.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_make_const.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_make_const.c')
-rw-r--r--src/lisp/ao_lisp_make_const.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/lisp/ao_lisp_make_const.c b/src/lisp/ao_lisp_make_const.c
index 501052b9..6f852f9d 100644
--- a/src/lisp/ao_lisp_make_const.c
+++ b/src/lisp/ao_lisp_make_const.c
@@ -57,20 +57,12 @@ struct builtin_func funcs[] = {
">", AO_LISP_FUNC_LEXPR, builtin_greater,
"<=", AO_LISP_FUNC_LEXPR, builtin_less_equal,
">=", AO_LISP_FUNC_LEXPR, builtin_greater_equal,
+ "delay", AO_LISP_FUNC_LAMBDA, builtin_delay,
+ "led", AO_LISP_FUNC_LEXPR, builtin_led,
};
#define N_FUNC (sizeof funcs / sizeof funcs[0])
-/* Syntactic atoms */
-char *atoms[] = {
- "lambda",
- "nlambda",
- "lexpr",
- "macro"
-};
-
-#define N_ATOM (sizeof atoms / sizeof atoms[0])
-
struct ao_lisp_frame *globals;
static int
@@ -102,10 +94,6 @@ main(int argc, char **argv)
ao_lisp_builtin_poly(b));
}
- /* atoms for syntax */
- for (i = 0; i < N_ATOM; i++)
- (void) ao_lisp_atom_intern(atoms[i]);
-
/* boolean constants */
ao_lisp_atom_set(ao_lisp_atom_poly(ao_lisp_atom_intern("nil")),
AO_LISP_NIL);