chiark
/
gitweb
/
~mdw
/
sod
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update automatically managed build utilities.
[sod]
/
src
/
codegen-impl.lisp
diff --git
a/src/codegen-impl.lisp
b/src/codegen-impl.lisp
index c4f83e100d2b9f370d93947cd3d4b11203d1968a..d988b1277a2d8a05d7bab873b21197b0c91fe79e 100644
(file)
--- a/
src/codegen-impl.lisp
+++ b/
src/codegen-impl.lisp
@@
-80,18
+80,18
@@
(defmethod print-object ((var temporary-name) stream)
;; package. The `definst' machinery will symbolicate the various associated
;; methods correctly despite this subterfuge.
;; package. The `definst' machinery will symbolicate the various associated
;; methods correctly despite this subterfuge.
-(definst if (stream :export t) (#1=#:cond
ition consequent alternative
)
- (format-compound-statement (stream conseq
uent alternative
)
+(definst if (stream :export t) (#1=#:cond
conseq alt
)
+ (format-compound-statement (stream conseq
alt
)
(format stream "if (~A)" #1#))
(format stream "if (~A)" #1#))
- (when alt
ernative
- (format-compound-statement (stream alt
ernative
)
+ (when alt
+ (format-compound-statement (stream alt)
(write-string "else" stream))))
(write-string "else" stream))))
-(definst while (stream :export t) (#1=#:cond
ition
body)
+(definst while (stream :export t) (#1=#:cond body)
(format-compound-statement (stream body)
(format stream "while (~A)" #1#)))
(format-compound-statement (stream body)
(format stream "while (~A)" #1#)))
-(definst do-while (stream :export t) (body #1=#:cond
ition
)
+(definst do-while (stream :export t) (body #1=#:cond)
(format-compound-statement (stream body :space)
(write-string "do" stream))
(format stream "while (~A);" #1#))
(format-compound-statement (stream body :space)
(write-string "do" stream))
(format stream "while (~A);" #1#))