diff options
author | Andy Wingo <wingo@pobox.com> | 2016-05-13 08:53:36 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2016-05-13 09:09:42 +0200 |
commit | d1bb400c3f378f28a72eb9e39178d9fed1d44b2d (patch) | |
tree | 63f0fc951708fdda2e15dbb9c38756099c4b2ad3 /libguile/ports.h | |
parent | df0dade9b7b3e1d488a5049d3cc730abd67c6692 (diff) | |
download | guile-d1bb400c3f378f28a72eb9e39178d9fed1d44b2d.tar.gz |
Beginnings of shunting ports-in-scheme off to a module
* libguile/ports.c (scm_specialize_port_encoding_x): Add some sanity
checks.
(scm_unget_bytes): Use scm_expand_port_read_buffer_x.
(port_clear_stream_start_for_bom_read): Use
scm_specialize_port_encoding_x.
(scm_fill_input): Use scm_expand_port_read_buffer_x.
(scm_expand_port_read_buffer_x): Rename from
scm_set_port_read_buffer_x and actually expand the buffer.
* libguile/ports.h: Adapt to scm_expand_port_read_buffer_x change.
* module/ice-9/ports.scm: Remove ports-in-scheme stuff, and instead
expose the ports internals via an auxiliary module. This will let
ports-in-scheme live in a module during Guile 2.2.
Diffstat (limited to 'libguile/ports.h')
-rw-r--r-- | libguile/ports.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/ports.h b/libguile/ports.h index cec60212c..dc0b30dce 100644 --- a/libguile/ports.h +++ b/libguile/ports.h @@ -321,7 +321,8 @@ SCM_API void scm_flush (SCM port); SCM_INTERNAL SCM scm_port_random_access_p (SCM port); SCM_INTERNAL SCM scm_port_read_buffering (SCM port); -SCM_INTERNAL SCM scm_set_port_read_buffer_x (SCM port, SCM buf); +SCM_INTERNAL SCM scm_expand_port_read_buffer_x (SCM port, SCM size, + SCM putback_p); SCM_INTERNAL SCM scm_port_read (SCM port); SCM_INTERNAL SCM scm_port_write (SCM port); SCM_INTERNAL SCM scm_port_read_buffer (SCM port); |