summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-15 20:25:03 -0800
committerKeith Packard <keithp@keithp.com>2016-11-17 22:18:39 -0800
commit1e90df9df37f8ccfe029dcf3e3dc3905779c378b (patch)
treeccba3f787dff1e4c382052629c94ebee493acd46
parent3fdc4f5087a51d031f6f0c82354794466635f2bf (diff)
altos/lisp: remove nth from hanoi.lisp
It's now in ROM. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/test/ao_lisp_os.h2
-rw-r--r--src/test/hanoi.lisp6
2 files changed, 1 insertions, 7 deletions
diff --git a/src/test/ao_lisp_os.h b/src/test/ao_lisp_os.h
index 8b9c1475..dedcca28 100644
--- a/src/test/ao_lisp_os.h
+++ b/src/test/ao_lisp_os.h
@@ -23,7 +23,7 @@
#include <time.h>
#define AO_LISP_POOL_TOTAL 3072
-#define AO_LISP_SAVE
+#define AO_LISP_SAVE 1
extern int ao_lisp_getc(void);
diff --git a/src/test/hanoi.lisp b/src/test/hanoi.lisp
index 66a8d04b..aece2ba0 100644
--- a/src/test/hanoi.lisp
+++ b/src/test/hanoi.lisp
@@ -106,12 +106,6 @@
)
)
-(defun nth (list n)
- (cond ((= n 0) (car list))
- ((nth (cdr list) (1- n)))
- )
- )
-
; Replace a stack in the list of stacks
; with a new value