diff options
author | Andy Wingo <wingo@pobox.com> | 2016-04-22 21:32:05 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2016-04-23 15:21:43 +0200 |
commit | 99899b7c9c360cc382ba3fbb05bae5265313b9ac (patch) | |
tree | b2876dc9b4a18a646879b818c96d9259e57da3ed /libguile/read.c | |
parent | 69a1b83f31824cc23c7c4d60144de2225517c76f (diff) |
Remove scm_flush_unlocked / scm_end_input_unlocked
* libguile/ports.h (scm_flush_unlocked, scm_end_input_unlocked):
Remove.
* libguile/ports.c (scm_c_read_bytes_unlocked):
(scm_i_unget_bytes_unlocked, scm_setvbuf, scm_force_output)
(scm_fill_input_unlocked, scm_c_write_bytes_unlocked)
(scm_c_write_unlocked, scm_lfwrite_unlocked, scm_seek)
(scm_truncate_file, flush_output_port): Call scm_flush / scm_end_input
instead of the _unlocked variants.
(scm_end_input): Lock while discarding the input buffer but not while
calling out to the seek function.
* libguile/filesys.c (scm_fsync):
* libguile/ioext.c (scm_redirect_port):
* libguile/read.c (scm_i_scan_for_encoding):
* libguile/rw.c (scm_write_string_partial): Use scm_flush, not
scm_flush_unlocked.
Diffstat (limited to 'libguile/read.c')
-rw-r--r-- | libguile/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/read.c b/libguile/read.c index c7ba4e7e4..9e072ad67 100644 --- a/libguile/read.c +++ b/libguile/read.c @@ -2068,7 +2068,7 @@ scm_i_scan_for_encoding (SCM port) buf = pt->read_buf; if (pt->rw_random) - scm_flush_unlocked (port); + scm_flush (port); if (scm_port_buffer_can_take (buf) == 0) { |