From mboxrd@z Thu Jan 1 00:00:00 1970 From: ghouston@sourceware.cygnus.com To: guile-cvs@sourceware.cygnus.com Subject: guile/guile-core NEWS libguile/ChangeLog libgu ... Date: Sun, 24 Oct 1999 04:25:00 -0000 Message-id: <19991024112531.31282.qmail@sourceware.cygnus.com> X-SW-Source: 1999-q4/msg00089.html List-Id: CVSROOT: /cvs/guile Module name: guile Changes by: ghouston@sourceware.cygnus.com 99/10/24 04:25:31 Modified files: guile-core : NEWS guile-core/libguile: ChangeLog fports.c ports.c strports.c Log message: * 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.