summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-01-07 01:45:19 -0800
committerKaz Kylheku <kaz@kylheku.com>2018-01-07 01:45:19 -0800
commit3cdac5ead76c16bbf68be92a086c0b9ab72ad3b9 (patch)
tree998d1812151d449e486d4f4ce51033286e55e5f0 /lib.c
parent639986fea1d7ba47a872b35be684892e4fcbd908 (diff)
downloadtxr-3cdac5ead76c16bbf68be92a086c0b9ab72ad3b9.tar.gz
txr-3cdac5ead76c16bbf68be92a086c0b9ab72ad3b9.tar.bz2
txr-3cdac5ead76c16bbf68be92a086c0b9ab72ad3b9.zip
term: move near site of use.
* eval.c (term): Function here from lib.c, and changed to static. It is used only by iapply. * lib.c (term): Function moved to eval.c. * lib.h (term): Declaration removed.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib.c b/lib.c
index fd60e1f7..48bf1807 100644
--- a/lib.c
+++ b/lib.c
@@ -660,13 +660,6 @@ loc tail(val cons)
return cdr_l(cons);
}
-loc term(loc head)
-{
- while (consp(deref(head)))
- head = cdr_l(deref(head));
- return head;
-}
-
val lastcons(val list)
{
val ret;