Skip to content

Commit b7e9f82

Browse files
committed
LOAD - replace *standard-output*
1 parent 9582211 commit b7e9f82

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/load.lisp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@
4040

4141
(defun _ldr_eval_ (sexpr verbose)
4242
(when verbose
43-
(format *standard-output* "~a ~a~%" (car sexpr) (cadr sexpr)))
43+
(format t "~a ~a~%" (car sexpr) (cadr sexpr)))
4444
(handler-case
4545
(progn
4646
(dolist (x (multiple-value-list (eval sexpr)))
47-
(format *standard-output* " ~a~%" x))
47+
(format t " ~a~%" x))
4848
t)
4949
(error (msg)
5050
(typecase condition
5151
(simple-error
52-
(apply #'format *standard-output*
52+
(apply #'format t
5353
(simple-condition-format-control condition)
5454
(simple-condition-format-arguments condition)))
5555
(t (let* ((*print-escape* nil))
56-
(print-object condition *standard-output*))))
56+
(print-object condition))))
5757
nil))
5858
nil)
5959

@@ -179,7 +179,7 @@
179179
(lambda (input)
180180
(_load_form_eval_ (_ldr_ctrl-r_replace_ input) verbose))
181181
(lambda (url status)
182-
(format *standard-output* "~%Load: Can't load ~a~% Status: ~a~%" url status))))
182+
(format t "~%Load: Can't load ~a~% Status: ~a~%" url status))))
183183

184184
;;; alowe make bundle from source received from local fs (by FILE:)
185185
;;; or from remote resourse (by HTTP:)
@@ -189,7 +189,7 @@
189189
(lambda (input)
190190
(_load_eval_bundle_ (_ldr_ctrl-r_replace_ input) verbose bundle-name place hook))
191191
(lambda (url status)
192-
(format *standard-output* "~%Load: Can't load ~a~% Status: ~a~%" url status))))
192+
(format t "~%Load: Can't load ~a~% Status: ~a~%" url status))))
193193

194194
;;; sync mode
195195
(defun loader-sync-mode (name verbose bundle-name place hook)
@@ -220,7 +220,7 @@
220220
(progn
221221
(setq expr (ls-read stream nil eof))
222222
(when (eq expr eof) (go _rdr_done_))
223-
(when verbose (format *standard-output* "~a ~a~%" (car expr) (cadr expr)))
223+
(when verbose (format t "~a ~a~%" (car expr) (cadr expr)))
224224
(with-compilation-environment
225225
(setq code (compile-toplevel expr t t))
226226
(setq rc (js-eval code))
@@ -231,7 +231,7 @@
231231
(hook ((oget code-stor "push") code))
232232
(t t)) ))
233233
(error (msg)
234-
(format *standard-output* " Error: ")
234+
(format t " Error: ")
235235
(load_cond_err_handl_ msg)
236236
;; break read-eval loop
237237
;; no bundle
@@ -250,7 +250,7 @@
250250
(defun _load_cond_err_handl_(condition)
251251
(typecase condition
252252
(simple-error
253-
(apply #'format *standard-output*
253+
(apply #'format t
254254
(simple-condition-format-control condition)
255255
(simple-condition-format-arguments condition)))
256256
(type-error
@@ -259,10 +259,10 @@
259259
;; while it remains as it was done.
260260
;; sometime later
261261
(let* ((*print-escape* nil))
262-
(print-object condition *standard-output*)))
262+
(print-object condition)))
263263
(t (let* ((*print-escape* nil))
264-
(print-object condition *standard-output*))))
265-
(write-char #\newline *standard-output*))
264+
(print-object condition))))
265+
(write-char #\newline))
266266

267267

268268
;;; Check what output directory exists
@@ -311,7 +311,7 @@
311311
((oget stream "write") (_loader_stm_wraper_ stm))))
312312
(_loader_bundle_stm_close_ stream place)
313313
((oget stream "end"))
314-
(format *standard-output* "The bundle up ~d expressions into ~s~%" nums fname) ))
314+
(format t "The bundle up ~d expressions into ~s~%" nums fname) ))
315315

316316

317317

@@ -331,7 +331,7 @@
331331
(oget link "type") "text/javascript"
332332
(oget link "src") from
333333
(oget link "onerror") (lambda (ignore)
334-
(format *standard-output* "~%Error loading ~s file.~%" from)
334+
(format t "~%Error loading ~s file.~%" from)
335335
(funcall ((oget body "removeChild" "bind") body link ))
336336
(values)))
337337
(when onload
@@ -355,7 +355,7 @@
355355
(oget link "type") "text/css"
356356
(oget link "href") from
357357
(oget link "onerror") (lambda (ignore)
358-
(format *standard-output* "~%Error loading ~s file.~%" from)
358+
(format t "~%Error loading ~s file.~%" from)
359359
(funcall ((oget body "removeChild" "bind") body link ))
360360
(values)))
361361
(when onload

0 commit comments

Comments
 (0)