|
40 | 40 |
|
41 | 41 | (defun _ldr_eval_ (sexpr verbose) |
42 | 42 | (when verbose |
43 | | - (format *standard-output* "~a ~a~%" (car sexpr) (cadr sexpr))) |
| 43 | + (format t "~a ~a~%" (car sexpr) (cadr sexpr))) |
44 | 44 | (handler-case |
45 | 45 | (progn |
46 | 46 | (dolist (x (multiple-value-list (eval sexpr))) |
47 | | - (format *standard-output* " ~a~%" x)) |
| 47 | + (format t " ~a~%" x)) |
48 | 48 | t) |
49 | 49 | (error (msg) |
50 | 50 | (typecase condition |
51 | 51 | (simple-error |
52 | | - (apply #'format *standard-output* |
| 52 | + (apply #'format t |
53 | 53 | (simple-condition-format-control condition) |
54 | 54 | (simple-condition-format-arguments condition))) |
55 | 55 | (t (let* ((*print-escape* nil)) |
56 | | - (print-object condition *standard-output*)))) |
| 56 | + (print-object condition)))) |
57 | 57 | nil)) |
58 | 58 | nil) |
59 | 59 |
|
|
179 | 179 | (lambda (input) |
180 | 180 | (_load_form_eval_ (_ldr_ctrl-r_replace_ input) verbose)) |
181 | 181 | (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)))) |
183 | 183 |
|
184 | 184 | ;;; alowe make bundle from source received from local fs (by FILE:) |
185 | 185 | ;;; or from remote resourse (by HTTP:) |
|
189 | 189 | (lambda (input) |
190 | 190 | (_load_eval_bundle_ (_ldr_ctrl-r_replace_ input) verbose bundle-name place hook)) |
191 | 191 | (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)))) |
193 | 193 |
|
194 | 194 | ;;; sync mode |
195 | 195 | (defun loader-sync-mode (name verbose bundle-name place hook) |
|
220 | 220 | (progn |
221 | 221 | (setq expr (ls-read stream nil eof)) |
222 | 222 | (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))) |
224 | 224 | (with-compilation-environment |
225 | 225 | (setq code (compile-toplevel expr t t)) |
226 | 226 | (setq rc (js-eval code)) |
|
231 | 231 | (hook ((oget code-stor "push") code)) |
232 | 232 | (t t)) )) |
233 | 233 | (error (msg) |
234 | | - (format *standard-output* " Error: ") |
| 234 | + (format t " Error: ") |
235 | 235 | (load_cond_err_handl_ msg) |
236 | 236 | ;; break read-eval loop |
237 | 237 | ;; no bundle |
|
250 | 250 | (defun _load_cond_err_handl_(condition) |
251 | 251 | (typecase condition |
252 | 252 | (simple-error |
253 | | - (apply #'format *standard-output* |
| 253 | + (apply #'format t |
254 | 254 | (simple-condition-format-control condition) |
255 | 255 | (simple-condition-format-arguments condition))) |
256 | 256 | (type-error |
|
259 | 259 | ;; while it remains as it was done. |
260 | 260 | ;; sometime later |
261 | 261 | (let* ((*print-escape* nil)) |
262 | | - (print-object condition *standard-output*))) |
| 262 | + (print-object condition))) |
263 | 263 | (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)) |
266 | 266 |
|
267 | 267 |
|
268 | 268 | ;;; Check what output directory exists |
|
311 | 311 | ((oget stream "write") (_loader_stm_wraper_ stm)))) |
312 | 312 | (_loader_bundle_stm_close_ stream place) |
313 | 313 | ((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) )) |
315 | 315 |
|
316 | 316 |
|
317 | 317 |
|
|
331 | 331 | (oget link "type") "text/javascript" |
332 | 332 | (oget link "src") from |
333 | 333 | (oget link "onerror") (lambda (ignore) |
334 | | - (format *standard-output* "~%Error loading ~s file.~%" from) |
| 334 | + (format t "~%Error loading ~s file.~%" from) |
335 | 335 | (funcall ((oget body "removeChild" "bind") body link )) |
336 | 336 | (values))) |
337 | 337 | (when onload |
|
355 | 355 | (oget link "type") "text/css" |
356 | 356 | (oget link "href") from |
357 | 357 | (oget link "onerror") (lambda (ignore) |
358 | | - (format *standard-output* "~%Error loading ~s file.~%" from) |
| 358 | + (format t "~%Error loading ~s file.~%" from) |
359 | 359 | (funcall ((oget body "removeChild" "bind") body link )) |
360 | 360 | (values))) |
361 | 361 | (when onload |
|
0 commit comments