mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 20:45:06 +02:00
Do not have (write) automatically output a newline
This commit is contained in:
parent
9f4991724e
commit
9052a0d2bd
3 changed files with 4 additions and 2 deletions
1
icyc.scm
1
icyc.scm
|
@ -50,6 +50,7 @@
|
||||||
(cond
|
(cond
|
||||||
((not (eof-object? c))
|
((not (eof-object? c))
|
||||||
(write c)
|
(write c)
|
||||||
|
(newline)
|
||||||
(repl:next-line))
|
(repl:next-line))
|
||||||
(else
|
(else
|
||||||
(display "\n")
|
(display "\n")
|
||||||
|
|
|
@ -711,7 +711,7 @@ static object _Cyc_write(object x, FILE *port)
|
||||||
|
|
||||||
object Cyc_write(object x, FILE *port)
|
object Cyc_write(object x, FILE *port)
|
||||||
{object y = _Cyc_write(x, port);
|
{object y = _Cyc_write(x, port);
|
||||||
fprintf(port, "\n");
|
//fprintf(port, "\n");
|
||||||
return y;}
|
return y;}
|
||||||
|
|
||||||
object Cyc_write_char(void *data, object c, object port)
|
object Cyc_write_char(void *data, object c, object port)
|
||||||
|
|
|
@ -361,5 +361,6 @@
|
||||||
|
|
||||||
|
|
||||||
; TODO: use display, output without surrounding quotes
|
; TODO: use display, output without surrounding quotes
|
||||||
(write (list *num-passed* " tests passed with no errors"))
|
(display (list *num-passed* "tests passed with no errors"))
|
||||||
|
(newline)
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue