summaryrefslogtreecommitdiff
path: root/doc/ref/api-io.texi
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2016-04-05 15:13:36 +0200
committerAndy Wingo <wingo@pobox.com>2016-04-05 15:16:26 +0200
commite8eeeeb1d4743fce89b28fa9360e71f6efd6a4e8 (patch)
treeeff8fa1aa759bbb9d447fedc120160b27c944e63 /doc/ref/api-io.texi
parentc0d5f8b5551cb5857f170f8e1557096874e684c5 (diff)
downloadguile-e8eeeeb1d4743fce89b28fa9360e71f6efd6a4e8.tar.gz
Port close functions return void
* libguile/ports.h (scm_t_ptob_descriptor): The port close function now returns void. (scm_set_port_close): Adapt prototype. * libguile/ports.c (scm_close_port): Always return true if we managed to call the close function. There's no other sensible result; exceptions are handled, well, exceptionally. * libguile/fports.c (fport_close) * libguile/r6rs-ports.c (custom_binary_port_close, transcoded_port_close): * libguile/vports.c (soft_port_close): Adapt. * doc/ref/api-io.texi (Port Implementation): Update.
Diffstat (limited to 'doc/ref/api-io.texi')
-rw-r--r--doc/ref/api-io.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/ref/api-io.texi b/doc/ref/api-io.texi
index 759d33940..4e4d59b66 100644
--- a/doc/ref/api-io.texi
+++ b/doc/ref/api-io.texi
@@ -2317,7 +2317,7 @@ argument @var{dest_port} is where its description should go.
Called when the port is closed. It should free any resources used by
the port. Set using
-@deftypefun void scm_set_port_close (scm_t_bits tc, int (*close) (SCM port))
+@deftypefun void scm_set_port_close (scm_t_bits tc, void (*close) (SCM port))
@end deftypefun
By default, ports that are garbage collected just go away without