mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
* libguile.h: include rw.h.
This commit is contained in:
parent
9a6fb1645e
commit
7e267da19f
3 changed files with 38 additions and 28 deletions
|
@ -1,3 +1,7 @@
|
|||
2001-04-29 Gary Houston <ghouston@arglist.com>
|
||||
|
||||
* libguile.h: include rw.h.
|
||||
|
||||
2001-04-27 Rob Browning <rlb@cs.utexas.edu>
|
||||
|
||||
* GUILE-VERSION (GUILE_MINOR_VERSION): change to 5.0, switching to
|
||||
|
|
61
NEWS
61
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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue