altos/lisp: Add scheme-style bools (#t and #f)
[fw/altos] / src / lisp / ao_lisp_mem.c
index d7c8d7a66dc5999c82436df0ecda201cb59efe4c..156221e843c69d0486e96e37b44e98efbf68d986 100644 (file)
@@ -211,6 +211,16 @@ static const struct ao_lisp_root   ao_lisp_root[] = {
                .type = &ao_lisp_cons_type,
                .addr = (void **) &ao_lisp_read_stack,
        },
+#ifdef AO_LISP_MAKE_CONST
+       {
+               .type = &ao_lisp_bool_type,
+               .addr = (void **) &ao_lisp_false,
+       },
+       {
+               .type = &ao_lisp_bool_type,
+               .addr = (void **) &ao_lisp_true,
+       },
+#endif
 };
 
 #define AO_LISP_ROOT   (sizeof (ao_lisp_root) / sizeof (ao_lisp_root[0]))
@@ -447,6 +457,7 @@ static const struct ao_lisp_type *ao_lisp_types[AO_LISP_NUM_TYPE] = {
        [AO_LISP_FRAME] = &ao_lisp_frame_type,
        [AO_LISP_LAMBDA] = &ao_lisp_lambda_type,
        [AO_LISP_STACK] = &ao_lisp_stack_type,
+       [AO_LISP_BOOL] = &ao_lisp_bool_type,
 };
 
 static int