* implemented write-byte
This commit is contained in:
parent
9032492bf3
commit
ceecfd9251
BIN
src/ikarus.boot
BIN
src/ikarus.boot
Binary file not shown.
|
@ -9,6 +9,7 @@
|
||||||
(ikarus system $fx)
|
(ikarus system $fx)
|
||||||
(ikarus system $ports)
|
(ikarus system $ports)
|
||||||
(except (ikarus) read-char unread-char peek-char write-char
|
(except (ikarus) read-char unread-char peek-char write-char
|
||||||
|
write-byte
|
||||||
newline port-name input-port-name output-port-name
|
newline port-name input-port-name output-port-name
|
||||||
close-input-port reset-input-port! flush-output-port
|
close-input-port reset-input-port! flush-output-port
|
||||||
close-output-port))
|
close-output-port))
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
(error 'write-char "port ~s is closed" p))))
|
(error 'write-char "port ~s is closed" p))))
|
||||||
(error 'write-char "~s is not an output-port" p))
|
(error 'write-char "~s is not an output-port" p))
|
||||||
(error 'write-char "~s is not a character" c))]
|
(error 'write-char "~s is not a character" c))]
|
||||||
|
[(write-byte b p) (output-file-handler 'write-char (integer->char b) p)]
|
||||||
[(flush-output-port p)
|
[(flush-output-port p)
|
||||||
(if (output-port? p)
|
(if (output-port? p)
|
||||||
(if open?
|
(if open?
|
||||||
|
|
|
@ -88,6 +88,7 @@
|
||||||
(error 'write-char "port ~s is closed" p))))
|
(error 'write-char "port ~s is closed" p))))
|
||||||
(error 'write-char "~s is not an output-port" p))
|
(error 'write-char "~s is not an output-port" p))
|
||||||
(error 'write-char "~s is not a character" c))]
|
(error 'write-char "~s is not a character" c))]
|
||||||
|
[(write-byte b p) (output-handler 'write-char (integer->char b) p)]
|
||||||
[(flush-output-port p)
|
[(flush-output-port p)
|
||||||
(void)]
|
(void)]
|
||||||
[(close-port p)
|
[(close-port p)
|
||||||
|
|
Loading…
Reference in New Issue