mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 23:50:19 +02:00
Merge remote-tracking branch 'origin/stable-2.0'
This commit is contained in:
commit
86cf4773ff
12 changed files with 217 additions and 201 deletions
|
@ -1,6 +1,7 @@
|
|||
@c -*-texinfo-*-
|
||||
@c This is part of the GNU Guile Reference Manual.
|
||||
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011, 2012
|
||||
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
|
||||
@c 2008, 2009, 2010, 2011, 2012, 2013
|
||||
@c Free Software Foundation, Inc.
|
||||
@c See the file guile.texi for copying conditions.
|
||||
|
||||
|
@ -281,6 +282,11 @@ Databases}).
|
|||
Indicates support for POSIX functions: @code{pipe}, @code{getgroups},
|
||||
@code{kill}, @code{execl} and so on (@pxref{POSIX}).
|
||||
|
||||
@item fork
|
||||
Indicates support for the POSIX @code{fork} function (@pxref{Processes,
|
||||
@code{primitive-fork}}). This is a prerequisite for the @code{(ice-9
|
||||
popen)} module (@pxref{Pipes}).
|
||||
|
||||
@item random
|
||||
Indicates availability of random number generation functions:
|
||||
@code{random}, @code{copy-random-state}, @code{random-uniform} and so on
|
||||
|
|
|
@ -71,6 +71,9 @@ before any directories in the @env{GUILE_LOAD_PATH} environment
|
|||
variable. Paths added here are @emph{not} in effect during execution of
|
||||
the user's @file{.guile} file.
|
||||
|
||||
@item -C @var{directory}
|
||||
Like @option{-L}, but adjusts the load path for @emph{compiled} files.
|
||||
|
||||
@item -x @var{extension}
|
||||
Add @var{extension} to the front of Guile's load extension list
|
||||
(@pxref{Load Paths, @code{%load-extensions}}). The specified extensions
|
||||
|
|
|
@ -2189,7 +2189,8 @@ controlling terminal. The return value is unspecified.
|
|||
|
||||
The following procedures are similar to the @code{popen} and
|
||||
@code{pclose} system routines. The code is in a separate ``popen''
|
||||
module:
|
||||
module@footnote{This module is only available on systems where the
|
||||
@code{fork} feature is provided (@pxref{Common Feature Symbols}).}:
|
||||
|
||||
@lisp
|
||||
(use-modules (ice-9 popen))
|
||||
|
|
|
@ -3844,7 +3844,7 @@ again. SRFI-41 can be made available with:
|
|||
|
||||
SRFI-41 Streams are based on two mutually-recursive abstract data types:
|
||||
An object of the @code{stream} abstract data type is a promise that,
|
||||
when forced, is either @var{stream-null} or is an object of type
|
||||
when forced, is either @code{stream-null} or is an object of type
|
||||
@code{stream-pair}. An object of the @code{stream-pair} abstract data
|
||||
type contains a @code{stream-car} and a @code{stream-cdr}, which must be
|
||||
a @code{stream}. The essential feature of streams is the systematic
|
||||
|
@ -3862,14 +3862,14 @@ stream, and is only forced on demand.
|
|||
@subsubsection SRFI-41 Stream Primitives
|
||||
|
||||
This library provides eight operators: constructors for
|
||||
@var{stream-null} and @code{stream-pair}s, type predicates for streams
|
||||
@code{stream-null} and @code{stream-pair}s, type predicates for streams
|
||||
and the two kinds of streams, accessors for both fields of a
|
||||
@code{stream-pair}, and a lambda that creates procedures that return
|
||||
streams.
|
||||
|
||||
@defvr {Scheme Variable} stream-null
|
||||
A promise that, when forced, is a single object, distinguishable from
|
||||
all other objects, that represents the null stream. @var{stream-null}
|
||||
all other objects, that represents the null stream. @code{stream-null}
|
||||
is immutable and unique.
|
||||
@end defvr
|
||||
|
||||
|
@ -4003,7 +4003,7 @@ Returns a newly-allocated stream containing the elements from
|
|||
Returns a newly-allocated stream containing in its elements the
|
||||
characters on the port. If @var{port} is not given it defaults to the
|
||||
current input port. The returned stream has finite length and is
|
||||
terminated by @var{stream-null}.
|
||||
terminated by @code{stream-null}.
|
||||
|
||||
It looks like one use of @code{port->stream} would be this:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue