* Move the responsibility for resetting port buffers from the
authorGary Houston <ghouston@arglist.com>
Sun, 24 Oct 1999 11:25:31 +0000 (11:25 +0000)
committerGary Houston <ghouston@arglist.com>
Sun, 24 Oct 1999 11:25:31 +0000 (11:25 +0000)
commit7dcb364d3bb2b057cca89122ba8a98bd53f49f3f
treeb0ac03a15f7724f59efbcad2806c518b7dcc233e
parente9c66ab07927d27dc3bf5a1e805ac9c0ce756443
* Move the responsibility for resetting port buffers from the
caller of the ptob seek procedure to the implementation.  This
gives more control in general to the ptob seek: in particular the
change of 1999-10-20 can be made to work without breaking seek on
string ports.  There's a comment in NEWS about upgrading port
types.

* ports.c (scm_seek): don't reset the port buffers here.

* fports.c (fport_seek): reset the buffers, except for the
0 SEEK_CUR case.

* strports.c (st_end_input): (bug fix): decrement pt->read_pos by
offset.  check that it's not less than read_buf.
(st_seek): reset the buffers first, unless it's the 0 SEEK_CUR
case and currently reading.
NEWS
libguile/ChangeLog
libguile/fports.c
libguile/ports.c
libguile/strports.c