2 * Copyright © 2016 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
23 #include <ao_lisp_os.h>
28 typedef uint16_t ao_poly;
29 typedef int16_t ao_signed_poly;
33 struct ao_lisp_os_save {
36 uint16_t const_checksum;
37 uint16_t const_checksum_inv;
40 #define AO_LISP_POOL_EXTRA (sizeof(struct ao_lisp_os_save))
41 #define AO_LISP_POOL ((int) (AO_LISP_POOL_TOTAL - AO_LISP_POOL_EXTRA))
44 ao_lisp_os_save(void);
47 ao_lisp_os_restore_save(struct ao_lisp_os_save *save, int offset);
50 ao_lisp_os_restore(void);
54 #ifdef AO_LISP_MAKE_CONST
55 #define AO_LISP_POOL_CONST 16384
56 extern uint8_t ao_lisp_const[AO_LISP_POOL_CONST] __attribute__((aligned(4)));
57 #define ao_lisp_pool ao_lisp_const
58 #define AO_LISP_POOL AO_LISP_POOL_CONST
60 #define _atom(n) ao_lisp_atom_poly(ao_lisp_atom_intern(n))
61 #define _bool(v) ao_lisp_bool_poly(ao_lisp_bool_get(v))
63 #define _ao_lisp_bool_true _bool(1)
64 #define _ao_lisp_bool_false _bool(0)
66 #define _ao_lisp_atom_eof _atom("eof")
67 #define _ao_lisp_atom_else _atom("else")
69 #define AO_LISP_BUILTIN_ATOMS
70 #include "ao_lisp_builtin.h"
73 #include "ao_lisp_const.h"
75 #define AO_LISP_POOL 3072
77 extern uint8_t ao_lisp_pool[AO_LISP_POOL + AO_LISP_POOL_EXTRA] __attribute__((aligned(4)));
81 #define AO_LISP_CONS 0
83 #define AO_LISP_STRING 2
84 #define AO_LISP_OTHER 3
86 #define AO_LISP_TYPE_MASK 0x0003
87 #define AO_LISP_TYPE_SHIFT 2
88 #define AO_LISP_REF_MASK 0x7ffc
89 #define AO_LISP_CONST 0x8000
91 /* These have a type value at the start of the struct */
92 #define AO_LISP_ATOM 4
93 #define AO_LISP_BUILTIN 5
94 #define AO_LISP_FRAME 6
95 #define AO_LISP_FRAME_VALS 7
96 #define AO_LISP_LAMBDA 8
97 #define AO_LISP_STACK 9
98 #define AO_LISP_BOOL 10
99 #define AO_LISP_BIGINT 11
100 #define AO_LISP_FLOAT 12
101 #define AO_LISP_NUM_TYPE 13
103 /* Leave two bits for types to use as they please */
104 #define AO_LISP_OTHER_TYPE_MASK 0x3f
106 #define AO_LISP_NIL 0
108 extern uint16_t ao_lisp_top;
110 #define AO_LISP_OOM 0x01
111 #define AO_LISP_DIVIDE_BY_ZERO 0x02
112 #define AO_LISP_INVALID 0x04
113 #define AO_LISP_UNDEFINED 0x08
114 #define AO_LISP_REDEFINED 0x10
115 #define AO_LISP_EOF 0x20
116 #define AO_LISP_EXIT 0x40
118 extern uint8_t ao_lisp_exception;
121 ao_lisp_is_const(ao_poly poly) {
122 return poly & AO_LISP_CONST;
125 #define AO_LISP_IS_CONST(a) (ao_lisp_const <= ((uint8_t *) (a)) && ((uint8_t *) (a)) < ao_lisp_const + AO_LISP_POOL_CONST)
126 #define AO_LISP_IS_POOL(a) (ao_lisp_pool <= ((uint8_t *) (a)) && ((uint8_t *) (a)) < ao_lisp_pool + AO_LISP_POOL)
127 #define AO_LISP_IS_INT(p) (ao_lisp_poly_base_type(p) == AO_LISP_INT)
130 ao_lisp_ref(ao_poly poly);
133 ao_lisp_poly(const void *addr, ao_poly type);
135 struct ao_lisp_type {
136 int (*size)(void *addr);
137 void (*mark)(void *addr);
138 void (*move)(void *addr);
142 struct ao_lisp_cons {
147 struct ao_lisp_atom {
159 struct ao_lisp_frame_vals {
162 struct ao_lisp_val vals[];
165 struct ao_lisp_frame {
172 struct ao_lisp_bool {
178 struct ao_lisp_bigint {
182 struct ao_lisp_float {
189 #if __BYTE_ORDER == __LITTLE_ENDIAN
190 static inline uint32_t
191 ao_lisp_int_bigint(int32_t i) {
192 return AO_LISP_BIGINT | (i << 8);
194 static inline int32_t
195 ao_lisp_bigint_int(uint32_t bi) {
196 return (int32_t) bi >> 8;
199 static inline uint32_t
200 ao_lisp_int_bigint(int32_t i) {
201 return (uint32_t) (i & 0xffffff) | (AO_LISP_BIGINT << 24);
203 static inlint int32_t
204 ao_lisp_bigint_int(uint32_t bi) {
205 return (int32_t) (bi << 8) >> 8;
209 #define AO_LISP_MIN_INT (-(1 << (15 - AO_LISP_TYPE_SHIFT)))
210 #define AO_LISP_MAX_INT ((1 << (15 - AO_LISP_TYPE_SHIFT)) - 1)
211 #define AO_LISP_MIN_BIGINT (-(1 << 24))
212 #define AO_LISP_MAX_BIGINT ((1 << 24) - 1)
214 #define AO_LISP_NOT_INTEGER 0x7fffffff
216 /* Set on type when the frame escapes the lambda */
217 #define AO_LISP_FRAME_MARK 0x80
218 #define AO_LISP_FRAME_PRINT 0x40
220 static inline int ao_lisp_frame_marked(struct ao_lisp_frame *f) {
221 return f->type & AO_LISP_FRAME_MARK;
224 static inline struct ao_lisp_frame *
225 ao_lisp_poly_frame(ao_poly poly) {
226 return ao_lisp_ref(poly);
229 static inline ao_poly
230 ao_lisp_frame_poly(struct ao_lisp_frame *frame) {
231 return ao_lisp_poly(frame, AO_LISP_OTHER);
234 static inline struct ao_lisp_frame_vals *
235 ao_lisp_poly_frame_vals(ao_poly poly) {
236 return ao_lisp_ref(poly);
239 static inline ao_poly
240 ao_lisp_frame_vals_poly(struct ao_lisp_frame_vals *vals) {
241 return ao_lisp_poly(vals, AO_LISP_OTHER);
245 eval_sexpr, /* Evaluate an sexpr */
246 eval_val, /* Value computed */
247 eval_formal, /* Formal computed */
248 eval_exec, /* Start a lambda evaluation */
249 eval_apply, /* Execute apply */
250 eval_cond, /* Start next cond clause */
251 eval_cond_test, /* Check cond condition */
252 eval_begin, /* Start next begin entry */
253 eval_while, /* Start while condition */
254 eval_while_test, /* Check while condition */
255 eval_macro, /* Finished with macro generation */
258 struct ao_lisp_stack {
259 uint8_t type; /* AO_LISP_STACK */
260 uint8_t state; /* enum eval_state */
261 ao_poly prev; /* previous stack frame */
262 ao_poly sexprs; /* expressions to evaluate */
263 ao_poly values; /* values computed */
264 ao_poly values_tail; /* end of the values list for easy appending */
265 ao_poly frame; /* current lookup frame */
266 ao_poly list; /* most recent function call */
269 #define AO_LISP_STACK_MARK 0x80 /* set on type when a reference has been taken */
270 #define AO_LISP_STACK_PRINT 0x40 /* stack is being printed */
272 static inline int ao_lisp_stack_marked(struct ao_lisp_stack *s) {
273 return s->type & AO_LISP_STACK_MARK;
276 static inline void ao_lisp_stack_mark(struct ao_lisp_stack *s) {
277 s->type |= AO_LISP_STACK_MARK;
280 static inline struct ao_lisp_stack *
281 ao_lisp_poly_stack(ao_poly p)
283 return ao_lisp_ref(p);
286 static inline ao_poly
287 ao_lisp_stack_poly(struct ao_lisp_stack *stack)
289 return ao_lisp_poly(stack, AO_LISP_OTHER);
292 extern ao_poly ao_lisp_v;
294 #define AO_LISP_FUNC_LAMBDA 0
295 #define AO_LISP_FUNC_NLAMBDA 1
296 #define AO_LISP_FUNC_MACRO 2
297 #define AO_LISP_FUNC_LEXPR 3
299 #define AO_LISP_FUNC_FREE_ARGS 0x80
300 #define AO_LISP_FUNC_MASK 0x7f
302 #define AO_LISP_FUNC_F_LAMBDA (AO_LISP_FUNC_FREE_ARGS | AO_LISP_FUNC_LAMBDA)
303 #define AO_LISP_FUNC_F_NLAMBDA (AO_LISP_FUNC_FREE_ARGS | AO_LISP_FUNC_NLAMBDA)
304 #define AO_LISP_FUNC_F_MACRO (AO_LISP_FUNC_FREE_ARGS | AO_LISP_FUNC_MACRO)
305 #define AO_LISP_FUNC_F_LEXPR (AO_LISP_FUNC_FREE_ARGS | AO_LISP_FUNC_LEXPR)
307 struct ao_lisp_builtin {
313 #define AO_LISP_BUILTIN_ID
314 #include "ao_lisp_builtin.h"
316 typedef ao_poly (*ao_lisp_func_t)(struct ao_lisp_cons *cons);
318 extern const ao_lisp_func_t ao_lisp_builtins[];
320 static inline ao_lisp_func_t
321 ao_lisp_func(struct ao_lisp_builtin *b)
323 return ao_lisp_builtins[b->func];
326 struct ao_lisp_lambda {
333 static inline struct ao_lisp_lambda *
334 ao_lisp_poly_lambda(ao_poly poly)
336 return ao_lisp_ref(poly);
339 static inline ao_poly
340 ao_lisp_lambda_poly(struct ao_lisp_lambda *lambda)
342 return ao_lisp_poly(lambda, AO_LISP_OTHER);
346 ao_lisp_poly_other(ao_poly poly) {
347 return ao_lisp_ref(poly);
350 static inline uint8_t
351 ao_lisp_other_type(void *other) {
353 if ((*((uint8_t *) other) & AO_LISP_OTHER_TYPE_MASK) >= AO_LISP_NUM_TYPE)
356 return *((uint8_t *) other) & AO_LISP_OTHER_TYPE_MASK;
359 static inline ao_poly
360 ao_lisp_other_poly(const void *other)
362 return ao_lisp_poly(other, AO_LISP_OTHER);
366 ao_lisp_size_round(int size)
368 return (size + 3) & ~3;
372 ao_lisp_size(const struct ao_lisp_type *type, void *addr)
374 return ao_lisp_size_round(type->size(addr));
377 #define AO_LISP_OTHER_POLY(other) ((ao_poly)(other) + AO_LISP_OTHER)
379 static inline int ao_lisp_poly_base_type(ao_poly poly) {
380 return poly & AO_LISP_TYPE_MASK;
383 static inline int ao_lisp_poly_type(ao_poly poly) {
384 int type = poly & AO_LISP_TYPE_MASK;
385 if (type == AO_LISP_OTHER)
386 return ao_lisp_other_type(ao_lisp_poly_other(poly));
390 static inline struct ao_lisp_cons *
391 ao_lisp_poly_cons(ao_poly poly)
393 return ao_lisp_ref(poly);
396 static inline ao_poly
397 ao_lisp_cons_poly(struct ao_lisp_cons *cons)
399 return ao_lisp_poly(cons, AO_LISP_CONS);
402 static inline int32_t
403 ao_lisp_poly_int(ao_poly poly)
405 return (int32_t) ((ao_signed_poly) poly >> AO_LISP_TYPE_SHIFT);
408 static inline ao_poly
409 ao_lisp_int_poly(int32_t i)
411 return ((ao_poly) i << 2) | AO_LISP_INT;
414 static inline struct ao_lisp_bigint *
415 ao_lisp_poly_bigint(ao_poly poly)
417 return ao_lisp_ref(poly);
420 static inline ao_poly
421 ao_lisp_bigint_poly(struct ao_lisp_bigint *bi)
423 return ao_lisp_poly(bi, AO_LISP_OTHER);
427 ao_lisp_poly_string(ao_poly poly)
429 return ao_lisp_ref(poly);
432 static inline ao_poly
433 ao_lisp_string_poly(char *s)
435 return ao_lisp_poly(s, AO_LISP_STRING);
438 static inline struct ao_lisp_atom *
439 ao_lisp_poly_atom(ao_poly poly)
441 return ao_lisp_ref(poly);
444 static inline ao_poly
445 ao_lisp_atom_poly(struct ao_lisp_atom *a)
447 return ao_lisp_poly(a, AO_LISP_OTHER);
450 static inline struct ao_lisp_builtin *
451 ao_lisp_poly_builtin(ao_poly poly)
453 return ao_lisp_ref(poly);
456 static inline ao_poly
457 ao_lisp_builtin_poly(struct ao_lisp_builtin *b)
459 return ao_lisp_poly(b, AO_LISP_OTHER);
462 static inline ao_poly
463 ao_lisp_bool_poly(struct ao_lisp_bool *b)
465 return ao_lisp_poly(b, AO_LISP_OTHER);
468 static inline struct ao_lisp_bool *
469 ao_lisp_poly_bool(ao_poly poly)
471 return ao_lisp_ref(poly);
474 static inline ao_poly
475 ao_lisp_float_poly(struct ao_lisp_float *f)
477 return ao_lisp_poly(f, AO_LISP_OTHER);
480 static inline struct ao_lisp_float *
481 ao_lisp_poly_float(ao_poly poly)
483 return ao_lisp_ref(poly);
487 ao_lisp_poly_number(ao_poly p);
489 /* memory functions */
491 extern int ao_lisp_collects[2];
492 extern int ao_lisp_freed[2];
493 extern int ao_lisp_loops[2];
495 /* returns 1 if the object was already marked */
497 ao_lisp_mark(const struct ao_lisp_type *type, void *addr);
499 /* returns 1 if the object was already marked */
501 ao_lisp_mark_memory(const struct ao_lisp_type *type, void *addr);
504 ao_lisp_move_map(void *addr);
506 /* returns 1 if the object was already moved */
508 ao_lisp_move(const struct ao_lisp_type *type, void **ref);
510 /* returns 1 if the object was already moved */
512 ao_lisp_move_memory(const struct ao_lisp_type *type, void **ref);
515 ao_lisp_alloc(int size);
517 #define AO_LISP_COLLECT_FULL 1
518 #define AO_LISP_COLLECT_INCREMENTAL 0
521 ao_lisp_collect(uint8_t style);
524 ao_lisp_cons_stash(int id, struct ao_lisp_cons *cons);
526 struct ao_lisp_cons *
527 ao_lisp_cons_fetch(int id);
530 ao_lisp_poly_stash(int id, ao_poly poly);
533 ao_lisp_poly_fetch(int id);
536 ao_lisp_string_stash(int id, char *string);
539 ao_lisp_string_fetch(int id);
542 ao_lisp_stack_stash(int id, struct ao_lisp_stack *stack) {
543 ao_lisp_poly_stash(id, ao_lisp_stack_poly(stack));
546 static inline struct ao_lisp_stack *
547 ao_lisp_stack_fetch(int id) {
548 return ao_lisp_poly_stack(ao_lisp_poly_fetch(id));
552 ao_lisp_frame_stash(int id, struct ao_lisp_frame *frame);
554 struct ao_lisp_frame *
555 ao_lisp_frame_fetch(int id);
559 extern const struct ao_lisp_type ao_lisp_bool_type;
562 ao_lisp_bool_write(ao_poly v);
564 #ifdef AO_LISP_MAKE_CONST
565 struct ao_lisp_bool *ao_lisp_true, *ao_lisp_false;
567 struct ao_lisp_bool *
568 ao_lisp_bool_get(uint8_t value);
572 extern const struct ao_lisp_type ao_lisp_cons_type;
574 struct ao_lisp_cons *
575 ao_lisp_cons_cons(ao_poly car, ao_poly cdr);
577 /* Return a cons or NULL for a proper list, else error */
578 struct ao_lisp_cons *
579 ao_lisp_cons_cdr(struct ao_lisp_cons *cons);
582 ao_lisp__cons(ao_poly car, ao_poly cdr);
584 extern struct ao_lisp_cons *ao_lisp_cons_free_list;
587 ao_lisp_cons_free(struct ao_lisp_cons *cons);
590 ao_lisp_cons_write(ao_poly);
593 ao_lisp_cons_display(ao_poly);
596 ao_lisp_cons_length(struct ao_lisp_cons *cons);
599 extern const struct ao_lisp_type ao_lisp_string_type;
602 ao_lisp_string_copy(char *a);
605 ao_lisp_string_cat(char *a, char *b);
608 ao_lisp_string_pack(struct ao_lisp_cons *cons);
611 ao_lisp_string_unpack(char *a);
614 ao_lisp_string_write(ao_poly s);
617 ao_lisp_string_display(ao_poly s);
620 extern const struct ao_lisp_type ao_lisp_atom_type;
622 extern struct ao_lisp_atom *ao_lisp_atoms;
623 extern struct ao_lisp_frame *ao_lisp_frame_global;
624 extern struct ao_lisp_frame *ao_lisp_frame_current;
627 ao_lisp_atom_write(ao_poly a);
629 struct ao_lisp_atom *
630 ao_lisp_atom_intern(char *name);
633 ao_lisp_atom_ref(ao_poly atom);
636 ao_lisp_atom_get(ao_poly atom);
639 ao_lisp_atom_set(ao_poly atom, ao_poly val);
642 ao_lisp_atom_def(ao_poly atom, ao_poly val);
646 ao_lisp_int_write(ao_poly i);
649 ao_lisp_poly_integer(ao_poly p);
652 ao_lisp_integer_poly(int32_t i);
655 ao_lisp_integer_typep(uint8_t t)
657 return (t == AO_LISP_INT) || (t == AO_LISP_BIGINT);
661 ao_lisp_bigint_write(ao_poly i);
663 extern const struct ao_lisp_type ao_lisp_bigint_type;
666 ao_lisp_poly_write(ao_poly p);
669 ao_lisp_poly_display(ao_poly p);
672 ao_lisp_poly_mark(ao_poly p, uint8_t note_cons);
674 /* returns 1 if the object has already been moved */
676 ao_lisp_poly_move(ao_poly *p, uint8_t note_cons);
681 ao_lisp_eval_clear_globals(void);
684 ao_lisp_eval_restart(void);
687 ao_lisp_eval(ao_poly p);
690 ao_lisp_set_cond(struct ao_lisp_cons *cons);
693 extern const struct ao_lisp_type ao_lisp_float_type;
696 ao_lisp_float_write(ao_poly p);
699 ao_lisp_float_get(float value);
701 static inline uint8_t
702 ao_lisp_number_typep(uint8_t t)
704 return ao_lisp_integer_typep(t) || (t == AO_LISP_FLOAT);
708 ao_lisp_poly_number(ao_poly p);
712 ao_lisp_builtin_write(ao_poly b);
714 extern const struct ao_lisp_type ao_lisp_builtin_type;
716 /* Check argument count */
718 ao_lisp_check_argc(ao_poly name, struct ao_lisp_cons *cons, int min, int max);
720 /* Check argument type */
722 ao_lisp_check_argt(ao_poly name, struct ao_lisp_cons *cons, int argc, int type, int nil_ok);
724 /* Fetch an arg (nil if off the end) */
726 ao_lisp_arg(struct ao_lisp_cons *cons, int argc);
729 ao_lisp_args_name(uint8_t args);
732 extern struct ao_lisp_cons *ao_lisp_read_cons;
733 extern struct ao_lisp_cons *ao_lisp_read_cons_tail;
734 extern struct ao_lisp_cons *ao_lisp_read_stack;
741 ao_lisp_read_eval_print(void);
744 extern const struct ao_lisp_type ao_lisp_frame_type;
745 extern const struct ao_lisp_type ao_lisp_frame_vals_type;
747 #define AO_LISP_FRAME_FREE 6
749 extern struct ao_lisp_frame *ao_lisp_frame_free_list[AO_LISP_FRAME_FREE];
752 ao_lisp_frame_mark(struct ao_lisp_frame *frame);
755 ao_lisp_frame_ref(struct ao_lisp_frame *frame, ao_poly atom);
757 struct ao_lisp_frame *
758 ao_lisp_frame_new(int num);
761 ao_lisp_frame_free(struct ao_lisp_frame *frame);
764 ao_lisp_frame_bind(struct ao_lisp_frame *frame, int num, ao_poly atom, ao_poly val);
767 ao_lisp_frame_add(struct ao_lisp_frame *frame, ao_poly atom, ao_poly val);
770 ao_lisp_frame_write(ao_poly p);
773 ao_lisp_frame_init(void);
776 extern const struct ao_lisp_type ao_lisp_lambda_type;
778 extern const char *ao_lisp_state_names[];
780 struct ao_lisp_lambda *
781 ao_lisp_lambda_new(ao_poly cons);
784 ao_lisp_lambda_write(ao_poly lambda);
787 ao_lisp_lambda_eval(void);
791 extern const struct ao_lisp_type ao_lisp_stack_type;
792 extern struct ao_lisp_stack *ao_lisp_stack;
793 extern struct ao_lisp_stack *ao_lisp_stack_free_list;
796 ao_lisp_stack_reset(struct ao_lisp_stack *stack);
799 ao_lisp_stack_push(void);
802 ao_lisp_stack_pop(void);
805 ao_lisp_stack_clear(void);
808 ao_lisp_stack_write(ao_poly stack);
811 ao_lisp_stack_eval(void);
816 ao_lisp_error_poly(char *name, ao_poly poly, ao_poly last);
819 ao_lisp_error_frame(int indent, char *name, struct ao_lisp_frame *frame);
822 ao_lisp_error(int error, char *format, ...);
826 #define AO_LISP_BUILTIN_DECLS
827 #include "ao_lisp_builtin.h"
829 /* debugging macros */
833 int ao_lisp_stack_depth;
835 #define DBG_INDENT() do { int _s; for(_s = 0; _s < ao_lisp_stack_depth; _s++) printf(" "); } while(0)
836 #define DBG_IN() (++ao_lisp_stack_depth)
837 #define DBG_OUT() (--ao_lisp_stack_depth)
838 #define DBG_RESET() (ao_lisp_stack_depth = 0)
839 #define DBG(...) printf(__VA_ARGS__)
840 #define DBGI(...) do { DBG("%4d: ", __LINE__); DBG_INDENT(); DBG(__VA_ARGS__); } while (0)
841 #define DBG_CONS(a) ao_lisp_cons_write(ao_lisp_cons_poly(a))
842 #define DBG_POLY(a) ao_lisp_poly_write(a)
843 #define OFFSET(a) ((a) ? (int) ((uint8_t *) a - ao_lisp_pool) : -1)
844 #define DBG_STACK() ao_lisp_stack_write(ao_lisp_stack_poly(ao_lisp_stack))
846 ao_lisp_frames_dump(void)
848 struct ao_lisp_stack *s;
849 DBGI(".. current frame: "); DBG_POLY(ao_lisp_frame_poly(ao_lisp_frame_current)); DBG("\n");
850 for (s = ao_lisp_stack; s; s = ao_lisp_poly_stack(s->prev)) {
851 DBGI(".. stack frame: "); DBG_POLY(s->frame); DBG("\n");
854 #define DBG_FRAMES() ao_lisp_frames_dump()
869 #define DBG_MEM_START 1
874 extern int dbg_move_depth;
876 #define MDBG_OFFSET(a) ((a) ? (int) ((uint8_t *) (a) - ao_lisp_pool) : -1)
881 #define MDBG_MOVE(...) do { if (dbg_mem) { int d; for (d = 0; d < dbg_move_depth; d++) printf (" "); printf(__VA_ARGS__); } } while (0)
882 #define MDBG_MORE(...) do { if (dbg_mem) printf(__VA_ARGS__); } while (0)
883 #define MDBG_MOVE_IN() (dbg_move_depth++)
884 #define MDBG_MOVE_OUT() (assert(--dbg_move_depth >= 0))
889 #define MDBG_MOVE(...)
890 #define MDBG_MORE(...)
891 #define MDBG_MOVE_IN()
892 #define MDBG_MOVE_OUT()
896 #endif /* _AO_LISP_H_ */