summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-06-27 07:23:08 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-06-27 07:23:08 -0700
commit0367ad753c7749c33f57e1e0805e0dbcea115af3 (patch)
treeea27bc337fa8de6eacd48e9084ac0eee1aa23ae6 /lib.h
parentea452c6fdc1b9d900ffe65b1cdeb0b098a4c20f6 (diff)
downloadtxr-0367ad753c7749c33f57e1e0805e0dbcea115af3.tar.gz
txr-0367ad753c7749c33f57e1e0805e0dbcea115af3.tar.bz2
txr-0367ad753c7749c33f57e1e0805e0dbcea115af3.zip
Bugfix: apply_intrinsic and iapply must not destructively
manipulate argument lists. * eval.c (apply_frob_args): Rewrite to non-destructive one-pass version. (iapply): Likewise. * lib.c (term): New function. * lib.h (term): Declared.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 448447b4..2a07d982 100644
--- a/lib.h
+++ b/lib.h
@@ -418,6 +418,7 @@ val lazy_conses(val list);
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 last(val list);
loc ltail(loc cons);