diff options
author | Andy Wingo <wingo@pobox.com> | 2016-04-04 11:28:28 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2016-04-04 16:30:57 +0200 |
commit | b77fb752dd7e14876741ecb6360ef0319eae18e0 (patch) | |
tree | c8c54b604d9f77f2634b0307bbf52dbccc9af39a /libguile/async.c | |
parent | b7e49a75a9f0c4f992c212e9f61de164dbaa66ec (diff) | |
download | guile-b77fb752dd7e14876741ecb6360ef0319eae18e0.tar.gz |
Flush buffered reads / writes before seeking
* libguile/ports.c (scm_seek): Flush before seeking on a buffered port.
* libguile/fports.c (fport_seek):
* libguile/strports.c (st_seek): Remove code to flush buffers.
* test-suite/tests/ports.test: Update test expectations that the
putback buffer is flushed on a seek. Previously there was a special
case for SEEK_CUR with an offset of 0 to avoid flushing buffers, but
that's an arbitrary choice that differs from all other combinations of
OFFSET and WHENCE.
Diffstat (limited to 'libguile/async.c')
0 files changed, 0 insertions, 0 deletions