A bunch of fprintf' ->
eprintf' conversions (and a few related things).
original commit: 17090fca4f19298f01d03fea419edb20f315d040
This commit is contained in:
parent
f7ba1647ae
commit
175d3d8a64
|
@ -164,9 +164,7 @@
|
|||
[(enter-prim (? Prim) exit-prim return)
|
||||
(begin
|
||||
(unless (eq? $3 $4)
|
||||
(fprintf (current-error-port)
|
||||
"warning: exit-prim and return differ:\n~s\n~s\n"
|
||||
$3 $4))
|
||||
(eprintf "warning: exit-prim and return differ:\n~s\n~s\n" $3 $4))
|
||||
($2 $1 $3 rs))]
|
||||
[((? MacroStep) (? EE))
|
||||
($1 e1 rs $2)])
|
||||
|
|
|
@ -285,12 +285,10 @@
|
|||
;; But for now, just drop it to avoid macro stepper error.
|
||||
;; Only bad effect should be missed subterms (usually at phase1).
|
||||
(STRICT-CHECKS
|
||||
(fprintf (current-error-port)
|
||||
"from:\n~.s\n\nto:\n~.s\n\n"
|
||||
(eprintf "from:\n~.s\n\nto:\n~.s\n\n"
|
||||
(stx->datum from)
|
||||
(stx->datum to))
|
||||
(fprintf (current-error-port)
|
||||
"original from:\n~.s\n\noriginal to:\n~.s\n\n"
|
||||
(eprintf "original from:\n~.s\n\noriginal to:\n~.s\n\n"
|
||||
(stx->datum from0)
|
||||
(stx->datum to0))
|
||||
(error 'add-to-renames-table))
|
||||
|
|
|
@ -540,17 +540,13 @@
|
|||
[expected-datum (stx->datum expected)]
|
||||
[same-form? (equal? actual-datum expected-datum)])
|
||||
(if same-form?
|
||||
(fprintf (current-error-port)
|
||||
"same form but wrong wrappings:\n~.s\nwrongness:\n~.s\n"
|
||||
(eprintf "same form but wrong wrappings:\n~.s\nwrongness:\n~.s\n"
|
||||
actual-datum
|
||||
(wrongness actual expected))
|
||||
(fprintf (current-error-port)
|
||||
"got:\n~.s\n\nexpected:\n~.s\n"
|
||||
(eprintf "got:\n~.s\n\nexpected:\n~.s\n"
|
||||
actual-datum
|
||||
expected-datum))
|
||||
(for ([d derivs])
|
||||
(fprintf (current-error-port)
|
||||
"\n~.s\n" d))
|
||||
(for ([d derivs]) (eprintf "\n~.s\n" d))
|
||||
(error function
|
||||
(if same-form?
|
||||
"wrong starting point (wraps)!"
|
||||
|
|
|
@ -760,7 +760,7 @@
|
|||
|
||||
;; lift-error
|
||||
(define (lift-error sym . args)
|
||||
(apply fprintf (current-error-port) args)
|
||||
(apply eprintf args)
|
||||
(newline (current-error-port))
|
||||
(when #f
|
||||
(apply error sym args)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user