diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | parser.y | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,5 +1,12 @@ 2011-12-29 Kaz Kylheku <kaz@kylheku.com> + * parser.y (repeat_rep_helper): Bugfix. Circular lists + were being created here when clauses of the same kind appear multiple + times. The problem is that append2 no longer copies the second list, + which the code was relying on it to do. + +2011-12-29 Kaz Kylheku <kaz@kylheku.com> + * txr.1: Useless sentence under reduce-left and reduce-right removed. Missing Description headings added. @@ -793,7 +793,7 @@ static val repeat_rep_helper(val sym, val main, val parts) for (iter = parts; iter != nil; iter = cdr(iter)) { val part = car(iter); val sym = car(part); - val clauses = cdr(part); + val clauses = copy_list(cdr(part)); if (sym == single_s) single_parts = nappend2(single_parts, clauses); |