From 2a43a5b68507d24e33783996c6a5fa99dd8233a2 Mon Sep 17 00:00:00 2001
From: Kaz Kylheku <kaz@kylheku.com>
Date: Tue, 2 Jan 2018 02:43:18 -0800
Subject: eliminate cdr_l use from implementation of last.

* lib.c (lastcons): Return value is just the last cons rather
than a loc. The only caller of this function is last.
(last): Adapt to the new lastcons.
---
 lib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'lib.h')

diff --git a/lib.h b/lib.h
index 6ba0140c..f38314dc 100644
--- a/lib.h
+++ b/lib.h
@@ -537,7 +537,7 @@ val listref(val list, val ind);
 loc listref_l(val list, val ind);
 loc tail(val cons);
 loc term(loc head);
-loc lastcons(val list);
+val lastcons(val list);
 val last(val list, val n);
 val nthlast(val pos, val list);
 val nthcdr(val pos, val list);
-- 
cgit v1.2.3