aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/SYMBOL.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/SYMBOL.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/SYMBOL.lsp')
-rw-r--r--src/algebra/strap/SYMBOL.lsp23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/algebra/strap/SYMBOL.lsp b/src/algebra/strap/SYMBOL.lsp
index 1071ebce..40ceb5c1 100644
--- a/src/algebra/strap/SYMBOL.lsp
+++ b/src/algebra/strap/SYMBOL.lsp
@@ -725,20 +725,17 @@
(DEFUN |SYMBOL;sample;$;35| ($) (DECLARE (IGNORE $)) '|aSymbol|)
(DEFUN |Symbol| ()
- (PROG ()
+ (PROG (#0=#:G1556)
(RETURN
- (PROG (#0=#:G1556)
- (RETURN
- (COND
- ((LETT #0# (HGET |$ConstructorCache| '|Symbol|) |Symbol|)
- (|CDRwithIncrement| (CDAR #0#)))
- ('T
- (UNWIND-PROTECT
- (PROG1 (CDDAR (HPUT |$ConstructorCache| '|Symbol|
- (LIST
- (CONS NIL (CONS 1 (|Symbol;|))))))
- (LETT #0# T |Symbol|))
- (COND ((NOT #0#) (HREM |$ConstructorCache| '|Symbol|)))))))))))
+ (COND
+ ((LETT #0# (HGET |$ConstructorCache| '|Symbol|) |Symbol|)
+ (|CDRwithIncrement| (CDAR #0#)))
+ ('T
+ (UNWIND-PROTECT
+ (PROG1 (CDDAR (HPUT |$ConstructorCache| '|Symbol|
+ (LIST (CONS NIL (CONS 1 (|Symbol;|))))))
+ (LETT #0# T |Symbol|))
+ (COND ((NOT #0#) (HREM |$ConstructorCache| '|Symbol|)))))))))
(DEFUN |Symbol;| ()
(LET ((|dv$| (LIST '|Symbol|)) ($ (|newShell| 165))