aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/ISTRING.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/ISTRING.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/ISTRING.lsp')
-rw-r--r--src/algebra/strap/ISTRING.lsp30
1 files changed, 13 insertions, 17 deletions
diff --git a/src/algebra/strap/ISTRING.lsp b/src/algebra/strap/ISTRING.lsp
index 6ceaf1dc..7879d51f 100644
--- a/src/algebra/strap/ISTRING.lsp
+++ b/src/algebra/strap/ISTRING.lsp
@@ -813,24 +813,20 @@
#0# (EXIT #0#)))))
(DEFUN |IndexedString| (#0=#:G1542)
- (PROG ()
+ (PROG (#1=#:G1543)
(RETURN
- (PROG (#1=#:G1543)
- (RETURN
- (COND
- ((LETT #1#
- (|lassocShiftWithFunction| (LIST (|devaluate| #0#))
- (HGET |$ConstructorCache| '|IndexedString|)
- '|domainEqualList|)
- |IndexedString|)
- (|CDRwithIncrement| #1#))
- ('T
- (UNWIND-PROTECT
- (PROG1 (|IndexedString;| #0#)
- (LETT #1# T |IndexedString|))
- (COND
- ((NOT #1#)
- (HREM |$ConstructorCache| '|IndexedString|)))))))))))
+ (COND
+ ((LETT #1#
+ (|lassocShiftWithFunction| (LIST (|devaluate| #0#))
+ (HGET |$ConstructorCache| '|IndexedString|)
+ '|domainEqualList|)
+ |IndexedString|)
+ (|CDRwithIncrement| #1#))
+ ('T
+ (UNWIND-PROTECT
+ (PROG1 (|IndexedString;| #0#) (LETT #1# T |IndexedString|))
+ (COND
+ ((NOT #1#) (HREM |$ConstructorCache| '|IndexedString|)))))))))
(DEFUN |IndexedString;| (|#1|)
(LET* ((|dv$1| (|devaluate| |#1|))