aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/ILIST.lsp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-06-06 13:37:14 +0000
committerdos-reis <gdr@axiomatics.org>2010-06-06 13:37:14 +0000
commit7d0cd86fd5243dc6d350e3ae7b4201698a82b69d (patch)
treeb97fb43b5e1cd614dc21ead4d4dd1b19239eee59 /src/algebra/strap/ILIST.lsp
parent4348e69c730e4e3faa7b993ac0dac5ec426a374c (diff)
downloadopen-axiom-7d0cd86fd5243dc6d350e3ae7b4201698a82b69d.tar.gz
* interp/c-util.boot (mutateToBackendCode): Don't replace explicit
SETQ by LETT.
Diffstat (limited to 'src/algebra/strap/ILIST.lsp')
-rw-r--r--src/algebra/strap/ILIST.lsp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/algebra/strap/ILIST.lsp b/src/algebra/strap/ILIST.lsp
index ea18f466..53c404ad 100644
--- a/src/algebra/strap/ILIST.lsp
+++ b/src/algebra/strap/ILIST.lsp
@@ -189,8 +189,7 @@
(SEQ (COND
((NULL |x|) (|error| "index out of range")))
(EXIT (LETT |x| (CDR |x|) |ILIST;rest;$Nni$;19|)))
- (LETT |i| (QSADD1 |i|) |ILIST;rest;$Nni$;19|) (GO G190)
- G191 (EXIT NIL))
+ (SETQ |i| (QSADD1 |i|)) (GO G190) G191 (EXIT NIL))
(EXIT |x|)))))
(DEFUN |ILIST;copy;2$;20| (|x| $)
@@ -206,8 +205,7 @@
(|error| "cyclic list")))))
(LETT |y| (CONS (CAR |x|) |y|) |ILIST;copy;2$;20|)
(EXIT (LETT |x| (CDR |x|) |ILIST;copy;2$;20|)))
- (LETT |i| (QSADD1 |i|) |ILIST;copy;2$;20|) (GO G190)
- G191 (EXIT NIL))
+ (SETQ |i| (QSADD1 |i|)) (GO G190) G191 (EXIT NIL))
(EXIT (NREVERSE |y|))))))
(DEFUN |ILIST;coerce;$Of;21| (|x| $)
@@ -467,16 +465,15 @@
(PROG (#2=#:G1519)
(RETURN
(COND
- ((LETT #2#
+ ((SETQ #2#
(|lassocShiftWithFunction| (|devaluateList| #1#)
(HGET |$ConstructorCache| '|IndexedList|)
- '|domainEqualList|)
- |IndexedList|)
+ '|domainEqualList|))
(|CDRwithIncrement| #2#))
('T
(UNWIND-PROTECT
(PROG1 (APPLY (|function| |IndexedList;|) #1#)
- (LETT #2# T |IndexedList|))
+ (SETQ #2# T))
(COND
((NOT #2#) (HREM |$ConstructorCache| '|IndexedList|)))))))))