HCoop
/
clinton
/
parenscript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a090d1e
)
Made compiled-form-to-string use write-string instead of printc, which
author
Vladimir Sedach
<vsedach@gmail.com>
Sun, 10 May 2009 17:39:02 +0000
(11:39 -0600)
committer
Vladimir Sedach
<vsedach@gmail.com>
Sun, 10 May 2009 17:39:02 +0000
(11:39 -0600)
results in a much more efficient ps*.
src/compilation-interface.lisp
patch
|
blob
|
blame
|
history
diff --git
a/src/compilation-interface.lisp
b/src/compilation-interface.lisp
index
3c7ea77
..
cb97cf3
100644
(file)
--- a/
src/compilation-interface.lisp
+++ b/
src/compilation-interface.lisp
@@
-25,12
+25,8
@@
Body is evaluated."
(defun compiled-form-to-string (ps-compiled-form)
(with-output-to-string (s)
- (mapc (lambda (x)
- (princ (if (stringp x)
- x
- (eval x))
- s))
- (parenscript-print ps-compiled-form))))
+ (dolist (x (parenscript-print ps-compiled-form))
+ (write-string (if (stringp x) x (eval x)) s))))
(defvar *js-inline-string-delimiter* #\"
"Controls the string delimiter char used when compiling Parenscript in ps-inline.")