summaryrefslogtreecommitdiffstats
path: root/sysif.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-15 06:48:11 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-15 06:48:11 -0700
commit5a09b244c77dbf498a4bdf7a9381d2741ce87055 (patch)
tree19c02de1d17eb709ec77b8458c7c679fc705b562 /sysif.c
parenta3c8effa1337c16e9c7832bf1fb4e66f72e5c3c8 (diff)
downloadtxr-5a09b244c77dbf498a4bdf7a9381d2741ce87055.tar.gz
txr-5a09b244c77dbf498a4bdf7a9381d2741ce87055.tar.bz2
txr-5a09b244c77dbf498a4bdf7a9381d2741ce87055.zip
key function argument on remq, remql and remqual.
* eval.c (weave_while): Pass third arg to remq as nil. (eval_init): Update registrations of remq, remql and remqual. * lib.c (remq, remql, remqual): Implement key function argument. * lib.h (remq, remql, remqual): Declarations updated. * sysif.c (at_exit_call): Pass third arg to remq as nil. * debug.c (debug): Pass third argument to remqual as nil. * txr.1: Documentation updated.
Diffstat (limited to 'sysif.c')
-rw-r--r--sysif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysif.c b/sysif.c
index 5c9f583b..c3d86fb5 100644
--- a/sysif.c
+++ b/sysif.c
@@ -149,7 +149,7 @@ val at_exit_call(val func)
val at_exit_do_not_call(val func)
{
val old = at_exit_list;
- at_exit_list = remq(func, old);
+ at_exit_list = remq(func, old, nil);
return tnil(old == at_exit_list);
}