--- gforth/Attic/kernel.fs 1997/03/20 14:39:51 1.19 +++ gforth/Attic/kernel.fs 1997/03/27 13:31:02 1.22 @@ -1265,6 +1265,7 @@ DEFER DOERROR ; : (DoError) ( throw-code -- ) + [ has-os [IF] ] outfile-id >r stderr to outfile-id [ [THEN] ] sourceline# IF source >in @ sourceline# 0 0 .error-frame THEN @@ -1286,7 +1287,9 @@ DEFER DOERROR ELSE .error THEN - normal-dp dpp ! ; + normal-dp dpp ! + [ has-os [IF] ] r> to outfile-id [ [THEN] ] +; ' (DoError) IS DoError @@ -1317,12 +1320,12 @@ Defer 'cold ( -- ) \ gforth tick-cold [ [THEN] ] 'cold [ has-files [IF] ] - argc @ 1 > + ['] process-args catch ?dup IF - ['] process-args catch ?dup - IF - dup >r DoError cr r> negate (bye) - THEN + dup >r DoError cr r> negate (bye) + THEN + argc @ 1 > + IF \ there may be some unfinished line, so let's finish it cr THEN [ [THEN] ]