From 9ea10a1408eb1cd63bd38f0367428b2b57b57b97 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 5 Oct 2011 09:53:10 -0700 Subject: * match.c (match_files): In function calls, the deletion of the unbound variable from the argument list can be done with a destructive operation since that list is a copy. --- ChangeLog | 6 ++++++ match.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b3d88c26..a8714a2c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-10-05 Kaz Kylheku + + * match.c (match_files): In function calls, the deletion of + the unbound variable from the argument list can be done + with a destructive operation since that list is a copy. + 2011-10-04 Kaz Kylheku * LICENSE, Makefile, configure, filter.c, filter.h, gc.c, gc.h, hash.c, diff --git a/match.c b/match.c index 007d7645..94ede32d 100644 --- a/match.c +++ b/match.c @@ -2046,7 +2046,7 @@ repeat_spec_same_data: param, cdr(val)); } else { - bindings_cp = alist_remove1(bindings_cp, param); + bindings_cp = alist_nremove1(bindings_cp, param); ub_p_a_pairs = cons(cons(param, arg), ub_p_a_pairs); } } else { -- cgit v1.2.3