aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/STAGG-.lsp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-05-03 20:51:40 +0000
committerdos-reis <gdr@axiomatics.org>2010-05-03 20:51:40 +0000
commit6c0cc18deacadb592fe3d68c5585979f6902cd1a (patch)
treee6a692a4192af9746f755e855c3dfb33e99cfcfd /src/algebra/strap/STAGG-.lsp
parent41cb0a1a53d9022c9461c6c9137329a252b455dd (diff)
downloadopen-axiom-6c0cc18deacadb592fe3d68c5585979f6902cd1a.tar.gz
Generate more readable code for functor definitions.
* interp/nruncomp.boot (washFunctorBody): New. (buildFunctor): Use it. * interp/g-opt.boot (optBind): New. (optLIST): Likewise.
Diffstat (limited to 'src/algebra/strap/STAGG-.lsp')
-rw-r--r--src/algebra/strap/STAGG-.lsp57
1 files changed, 26 insertions, 31 deletions
diff --git a/src/algebra/strap/STAGG-.lsp b/src/algebra/strap/STAGG-.lsp
index 01db7560..e81844bc 100644
--- a/src/algebra/strap/STAGG-.lsp
+++ b/src/algebra/strap/STAGG-.lsp
@@ -255,37 +255,32 @@
(EXIT |x|))))))
(DEFUN |StreamAggregate&| (|#1| |#2|)
- (PROG (|dv$1| |dv$2| |dv$| $ |pv$|)
- (RETURN
- (PROGN
- (LETT |dv$1| (|devaluate| |#1|) . #0=(|StreamAggregate&|))
- (LETT |dv$2| (|devaluate| |#2|) . #0#)
- (LETT |dv$| (LIST '|StreamAggregate&| |dv$1| |dv$2|) . #0#)
- (LETT $ (|newShell| 61) . #0#)
- (|setShellEntry| $ 0 |dv$|)
- (|setShellEntry| $ 3
- (LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#))
- (|stuffDomainSlots| $)
- (|setShellEntry| $ 6 |#1|)
- (|setShellEntry| $ 7 |#2|)
- (COND
- ((|HasAttribute| |#1| '|shallowlyMutable|)
- (PROGN
- (|setShellEntry| $ 38
- (CONS (|dispatchFunction| |STAGG-;concat;3A;7|) $))
- (|setShellEntry| $ 45
- (CONS (|dispatchFunction| |STAGG-;concat;LA;8|) $))
- (|setShellEntry| $ 48
- (CONS (|dispatchFunction| |STAGG-;map!;M2A;9|) $))
- (|setShellEntry| $ 49
- (CONS (|dispatchFunction| |STAGG-;fill!;ASA;10|) $))
- (|setShellEntry| $ 50
- (CONS (|dispatchFunction| |STAGG-;setelt;AI2S;11|) $))
- (|setShellEntry| $ 53
- (CONS (|dispatchFunction| |STAGG-;setelt;AUs2S;12|) $))
- (|setShellEntry| $ 56
- (CONS (|dispatchFunction| |STAGG-;concat!;3A;13|) $)))))
- $))))
+ (LET* ((|dv$1| (|devaluate| |#1|)) (|dv$2| (|devaluate| |#2|))
+ (|dv$| (LIST '|StreamAggregate&| |dv$1| |dv$2|))
+ ($ (|newShell| 61)) (|pv$| (|buildPredVector| 0 0 NIL)))
+ (|setShellEntry| $ 0 |dv$|)
+ (|setShellEntry| $ 3 |pv$|)
+ (|stuffDomainSlots| $)
+ (|setShellEntry| $ 6 |#1|)
+ (|setShellEntry| $ 7 |#2|)
+ (COND
+ ((|HasAttribute| |#1| '|shallowlyMutable|)
+ (PROGN
+ (|setShellEntry| $ 38
+ (CONS (|dispatchFunction| |STAGG-;concat;3A;7|) $))
+ (|setShellEntry| $ 45
+ (CONS (|dispatchFunction| |STAGG-;concat;LA;8|) $))
+ (|setShellEntry| $ 48
+ (CONS (|dispatchFunction| |STAGG-;map!;M2A;9|) $))
+ (|setShellEntry| $ 49
+ (CONS (|dispatchFunction| |STAGG-;fill!;ASA;10|) $))
+ (|setShellEntry| $ 50
+ (CONS (|dispatchFunction| |STAGG-;setelt;AI2S;11|) $))
+ (|setShellEntry| $ 53
+ (CONS (|dispatchFunction| |STAGG-;setelt;AUs2S;12|) $))
+ (|setShellEntry| $ 56
+ (CONS (|dispatchFunction| |STAGG-;concat!;3A;13|) $)))))
+ $))
(MAKEPROP '|StreamAggregate&| '|infovec|
(LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|)