Fix bug in DISCARD-CHAR whereby it would fail if not immediately
authorTaylor R. Campbell <net/mumble/campbell>
Sun, 25 Dec 2005 05:10:02 +0000 (05:10 +0000)
committerTaylor R. Campbell <net/mumble/campbell>
Sun, 25 Dec 2005 05:10:02 +0000 (05:10 +0000)
commitc1fc167db82c37cebe52d74d345d22bb52d39121
treec521ba98b9b3c51cd48b43c2a8620e9f6baf9a36
parent1e15f4c3c85f5d128e5d9d8fbe07553b9b9afef1
Fix bug in DISCARD-CHAR whereby it would fail if not immediately
following a successful (non-EOF) PEEK-CHAR, while it should have the
same effect as READ-CHAR, per the manual.  DISCARD-CHAR is now a port
operation that may be supplied when constructing port types, but for
which a default is provided in terms of READ-CHAR.  The DISCARD-CHAR
feature now clobbers the unread character field only if it is already
filled; otherwise, it defers to the supplied operation.
v7/src/runtime/port.scm