From e19b35d2074a08b50431043da2095a4602fe6840 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 6 Sep 1999 13:49:41 +0000 Subject: * mbconv.c: Incomplete beginnings of converting input and output ports. * mbconv.h: Declarations for same. --- libguile/mbconv.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/libguile/mbconv.c b/libguile/mbconv.c index e3a256aa0..09b3f34f1 100644 --- a/libguile/mbconv.c +++ b/libguile/mbconv.c @@ -356,6 +356,33 @@ scm_mb_iconv (struct scm_mb_iconv *context, return 0; } +#if 0 + +/* Input conversion ports. */ + +/* Given that PORT is an input port containing data in the encoding + named ENCODING, return a new input port carrying the same data as + PORT, converted into Guile's internal encoding. The resulting input + port is not seekable. */ +SCM_PROC (s_convert_input_port, "convert-input-port", 2, 0, 0, scm_convert_input_port); +SCM +scm_convert_input_port (SCM port, SCM encoding) +{ + +} + + +/* Output conversion ports. */ +/* Return a new port which accepts data in Guile's internal encoding, + and sends it to PORT in ENCODING. PORT must be an output port, and + ENCODING must be the name of an encoding. */ +SCM +scm_convert_output_port (SCM port, SCM encoding) +{ + +} +#endif + /* Initialization. */ -- cgit v1.2.1