aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/LNAGG-.lsp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-06-06 05:36:53 +0000
committerdos-reis <gdr@axiomatics.org>2010-06-06 05:36:53 +0000
commit4348e69c730e4e3faa7b993ac0dac5ec426a374c (patch)
tree093aafc4e19ce9661a0aee78ecad4aab58c46e38 /src/algebra/strap/LNAGG-.lsp
parentf39c8c2ab9bf4ab06fefc09d75bcc95124d0acc1 (diff)
downloadopen-axiom-4348e69c730e4e3faa7b993ac0dac5ec426a374c.tar.gz
* interp/c-util.boot (needPROGS?): New.
(transformToBackendCode): Use it. Don't add unneeded PROG/RETURN.
Diffstat (limited to 'src/algebra/strap/LNAGG-.lsp')
-rw-r--r--src/algebra/strap/LNAGG-.lsp18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/algebra/strap/LNAGG-.lsp b/src/algebra/strap/LNAGG-.lsp
index 9051a7b1..013dda16 100644
--- a/src/algebra/strap/LNAGG-.lsp
+++ b/src/algebra/strap/LNAGG-.lsp
@@ -21,16 +21,14 @@
|LNAGG-;maxIndex;AI;6|))
(DEFUN |LNAGG-;indices;AL;1| (|a| $)
- (PROG ()
- (RETURN
- (LET ((|i| (SPADCALL |a| (|getShellEntry| $ 9)))
- (#0=#:G1412 (SPADCALL |a| (|getShellEntry| $ 10)))
- (#1=#:G1411 NIL))
- (LOOP
- (COND
- ((> |i| #0#) (RETURN (NREVERSE #1#)))
- (T (LETT #1# (CONS |i| #1#) |LNAGG-;indices;AL;1|)))
- (LETT |i| (+ |i| 1) |LNAGG-;indices;AL;1|))))))
+ (LET ((|i| (SPADCALL |a| (|getShellEntry| $ 9)))
+ (#0=#:G1412 (SPADCALL |a| (|getShellEntry| $ 10)))
+ (#1=#:G1411 NIL))
+ (LOOP
+ (COND
+ ((> |i| #0#) (RETURN (NREVERSE #1#)))
+ (T (LETT #1# (CONS |i| #1#) |LNAGG-;indices;AL;1|)))
+ (LETT |i| (+ |i| 1) |LNAGG-;indices;AL;1|))))
(DEFUN |LNAGG-;index?;IAB;2| (|i| |a| $)
(COND