aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/STAGG-.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/STAGG-.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/STAGG-.lsp')
-rw-r--r--src/algebra/strap/STAGG-.lsp34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/algebra/strap/STAGG-.lsp b/src/algebra/strap/STAGG-.lsp
index 2c69bba1..0f429a51 100644
--- a/src/algebra/strap/STAGG-.lsp
+++ b/src/algebra/strap/STAGG-.lsp
@@ -50,24 +50,22 @@
(SPADCALL |x| (|getShellEntry| $ 9)))
(DEFUN |STAGG-;first;ANniA;3| (|x| |n| $)
- (PROG ()
- (RETURN
- (SPADCALL
- (LET ((|i| 1) (#0=#:G1447 NIL))
- (LOOP
- (COND
- ((> |i| |n|) (RETURN (NREVERSE #0#)))
- (T (LETT #0#
- (CONS (|STAGG-;c2| |x|
- (LETT |x|
- (SPADCALL |x|
- (|getShellEntry| $ 13))
- |STAGG-;first;ANniA;3|)
- $)
- #0#)
- |STAGG-;first;ANniA;3|)))
- (LETT |i| (+ |i| 1) |STAGG-;first;ANniA;3|)))
- (|getShellEntry| $ 15)))))
+ (SPADCALL
+ (LET ((|i| 1) (#0=#:G1447 NIL))
+ (LOOP
+ (COND
+ ((> |i| |n|) (RETURN (NREVERSE #0#)))
+ (T (LETT #0#
+ (CONS (|STAGG-;c2| |x|
+ (LETT |x|
+ (SPADCALL |x|
+ (|getShellEntry| $ 13))
+ |STAGG-;first;ANniA;3|)
+ $)
+ #0#)
+ |STAGG-;first;ANniA;3|)))
+ (LETT |i| (+ |i| 1) |STAGG-;first;ANniA;3|)))
+ (|getShellEntry| $ 15)))
(DEFUN |STAGG-;c2| (|x| |r| $)
(COND