Change handling of PEEK-CHAR and UNREAD-CHAR so that it's done in the
authorChris Hanson <org/chris-hanson/cph>
Fri, 11 Jul 2008 05:26:43 +0000 (05:26 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 11 Jul 2008 05:26:43 +0000 (05:26 +0000)
commit67f85533c4e46e94941d6dee2888f5068245950d
treef3538bb2fbf70eca932bfc739743c5350883963c
parent62516b20278c0d6dfdfb3697cd72a3705f54f6a0
Change handling of PEEK-CHAR and UNREAD-CHAR so that it's done in the
generic I/O port operations.  This is easy to handle by simple hacking
of the byte-buffer indexes, and provides better semantics when the
port coding is changed on the fly.

This breaks transcripting, which must also be migrated to the generic
operations.

Add PEEK-CHAR and UNREAD-CHAR operations to ports that don't inherit
the generic operations.
v7/src/edwin/bufinp.scm
v7/src/imail/imail-util.scm
v7/src/runtime/fileio.scm
v7/src/runtime/genio.scm
v7/src/runtime/port.scm
v7/src/runtime/runtime.pkg
v7/src/runtime/ttyio.scm
v7/src/runtime/unicode.scm