diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-01-02 02:43:18 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-01-02 02:43:18 -0800 |
commit | 2a43a5b68507d24e33783996c6a5fa99dd8233a2 (patch) | |
tree | 73a012e7022559727913a13834e1801ed633ab4b /lib.h | |
parent | 6ac45e04ea817dcd6df3a749f523ed1b96ec0118 (diff) | |
download | txr-2a43a5b68507d24e33783996c6a5fa99dd8233a2.tar.gz txr-2a43a5b68507d24e33783996c6a5fa99dd8233a2.tar.bz2 txr-2a43a5b68507d24e33783996c6a5fa99dd8233a2.zip |
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.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |