* implemented write-byte

This commit is contained in:
Abdulaziz Ghuloum 2007-05-18 08:22:04 -04:00
parent 9032492bf3
commit ceecfd9251
4 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -9,6 +9,7 @@
(ikarus system $fx)
(ikarus system $ports)
(except (ikarus) read-char unread-char peek-char write-char
write-byte
newline port-name input-port-name output-port-name
close-input-port reset-input-port! flush-output-port
close-output-port))

View File

@ -79,6 +79,7 @@
(error 'write-char "port ~s is closed" p))))
(error 'write-char "~s is not an output-port" p))
(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)
(if (output-port? p)
(if open?

View File

@ -88,6 +88,7 @@
(error 'write-char "port ~s is closed" p))))
(error 'write-char "~s is not an output-port" p))
(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)
(void)]
[(close-port p)