From 7e267da19f0c331afe8e4cde42d5928a95b669b5 Mon Sep 17 00:00:00 2001 From: Gary Houston Date: Sun, 29 Apr 2001 13:06:31 +0000 Subject: [PATCH] * libguile.h: include rw.h. --- ChangeLog | 4 ++++ NEWS | 61 +++++++++++++++++++++++++++++------------------------- libguile.h | 1 + 3 files changed, 38 insertions(+), 28 deletions(-) diff --git a/ChangeLog b/ChangeLog index f979331be..8f728e564 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-04-29 Gary Houston + + * libguile.h: include rw.h. + 2001-04-27 Rob Browning * GUILE-VERSION (GUILE_MINOR_VERSION): change to 5.0, switching to diff --git a/NEWS b/NEWS index 524ab7471..b852cce58 100644 --- a/NEWS +++ b/NEWS @@ -140,6 +140,38 @@ future. Alternatively, if guile-scsh is installed, the (scsh rdelim) module can be used for similar functionality. +** New module (ice-9 rw) + +This is a subset of the (scsh rw) module from guile-scsh. Currently +it defines a single procedure: + +** New function: read-string!/partial str [port_or_fdes [start [end]]] + + Read characters from an fport or file descriptor into a string + STR. This procedure is scsh-compatible and can efficiently read + large strings. It will: + + * attempt to fill the entire string, unless the START and/or + END arguments are supplied. i.e., START defaults to 0 and + END defaults to `(string-length str)' + + * use the current input port if PORT_OR_FDES is not supplied. + + * read any characters that are currently available, without + waiting for the rest (short reads are possible). + + * wait for as long as it needs to for the first character to + become available, unless the port is in non-blocking mode + + * return `#f' if end-of-file is encountered before reading any + characters, otherwise return the number of characters read. + + * return 0 if the port is in non-blocking mode and no characters + are immediately available. + + * return 0 if the request is for 0 bytes, with no end-of-file + check + ** New module (ice-9 match) This module includes Andrew K. Wright's pattern matcher: @@ -415,33 +447,6 @@ Guile. Instead, use scm_c_memq or scm_memq, scm_memv, scm_member. -** New function: read-string!/partial str [port_or_fdes [start [end]]] - - Read characters from an fport or file descriptor into a string - STR. This procedure is scsh-compatible and can efficiently read - large strings. It will: - - * attempt to fill the entire string, unless the START and/or - END arguments are supplied. i.e., START defaults to 0 and - END defaults to `(string-length str)' - - * use the current input port if PORT_OR_FDES is not supplied. - - * read any characters that are currently available, without - waiting for the rest (short reads are possible). - - * wait for as long as it needs to for the first character to - become available, unless the port is in non-blocking mode - - * return `#f' if end-of-file is encountered before reading any - characters, otherwise return the number of characters read. - - * return 0 if the port is in non-blocking mode and no characters - are immediately available. - - * return 0 if the request is for 0 bytes, with no end-of-file - check - ** New function: object->string OBJ Return a Scheme string obtained by printing a given object. @@ -5483,7 +5488,7 @@ Until then, gtcltk-lib provides trivial, low-maintenance functionality. Copyright information: -Copyright (C) 1996,1997 Free Software Foundation, Inc. +Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. Permission is granted to anyone to make or distribute verbatim copies of this document as received, in any medium, provided that the diff --git a/libguile.h b/libguile.h index 0eaed6891..d3e8a9adf 100644 --- a/libguile.h +++ b/libguile.h @@ -86,6 +86,7 @@ extern "C" { #include "libguile/init.h" #include "libguile/ioext.h" #include "libguile/rdelim.h" +#include "libguile/rw.h" #include "libguile/keywords.h" #include "libguile/list.h" #include "libguile/load.h" -- 2.20.1