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/ports.h | |
parent | 69a1b83f31824cc23c7c4d60144de2225517c76f (diff) | |
download | guile-99899b7c9c360cc382ba3fbb05bae5265313b9ac.tar.gz |
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/ports.h')
-rw-r--r-- | libguile/ports.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libguile/ports.h b/libguile/ports.h index 816005d9c..4b5242ecd 100644 --- a/libguile/ports.h +++ b/libguile/ports.h @@ -323,10 +323,8 @@ SCM_API SCM scm_fill_input_unlocked (SCM port); SCM_INTERNAL size_t scm_take_from_input_buffers (SCM port, char *dest, size_t read_len); SCM_API SCM scm_drain_input (SCM port); SCM_API void scm_end_input (SCM port); -SCM_API void scm_end_input_unlocked (SCM port); SCM_API SCM scm_force_output (SCM port); SCM_API void scm_flush (SCM port); -SCM_API void scm_flush_unlocked (SCM port); SCM_INTERNAL SCM scm_port_read_buffer (SCM port); SCM_INTERNAL SCM scm_port_write_buffer (SCM port); |