1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-06 12:10:28 +02:00

Improve the usage of variable names in C docstrings.

* libguile/alist.c:
* libguile/array-map.c:
* libguile/arrays.c:
* libguile/bitvectors.c:
* libguile/filesys.c:
* libguile/foreign.c:
* libguile/generalized-arrays.c:
* libguile/hashtab.c:
* libguile/ioext.c:
* libguile/load.c:
* libguile/numbers.c:
* libguile/ports.c:
* libguile/posix.c:
* libguile/print.c:
* libguile/procprop.c:
* libguile/promises.c:
* libguile/simpos.c:
* libguile/socket.c:
* libguile/srfi-1.c:
* libguile/srfi-13.c:
* libguile/srfi-14.c:
* libguile/stacks.c:
* libguile/stime.c:
* libguile/strings.c:
* libguile/struct.c:
* libguile/symbols.c:
* libguile/threads.c:
* libguile/weak-table.c:
* libguile/weak-vector.c: Make the variable names in the C docstrings more
  consistent.  Replace a few instances of @var with @code when appropriate.
This commit is contained in:
Bake Timmons 2012-01-11 23:33:01 -05:00 committed by Andy Wingo
parent c99acbf397
commit b7e64f8b26
27 changed files with 178 additions and 161 deletions

View file

@ -257,9 +257,9 @@ SCM_DEFINE (scm_assq_set_x, "assq-set!", 3, 0, 0,
(SCM alist, SCM key, SCM val), (SCM alist, SCM key, SCM val),
"@deffnx {Scheme Procedure} assv-set! alist key value\n" "@deffnx {Scheme Procedure} assv-set! alist key value\n"
"@deffnx {Scheme Procedure} assoc-set! alist key value\n" "@deffnx {Scheme Procedure} assoc-set! alist key value\n"
"Reassociate @var{key} in @var{alist} with @var{value}: find any existing\n" "Reassociate @var{key} in @var{alist} with @var{val}: find any existing\n"
"@var{alist} entry for @var{key} and associate it with the new\n" "@var{alist} entry for @var{key} and associate it with the new\n"
"@var{value}. If @var{alist} does not contain an entry for @var{key},\n" "@var{val}. If @var{alist} does not contain an entry for @var{key},\n"
"add a new one. Return the (possibly new) alist.\n\n" "add a new one. Return the (possibly new) alist.\n\n"
"These functions do not attempt to verify the structure of @var{alist},\n" "These functions do not attempt to verify the structure of @var{alist},\n"
"and so may cause unusual results if passed an object that is not an\n" "and so may cause unusual results if passed an object that is not an\n"

View file

@ -320,8 +320,8 @@ scm_ramapc (void *cproc_ptr, SCM data, SCM ra0, SCM lra, const char *what)
SCM_DEFINE (scm_array_fill_x, "array-fill!", 2, 0, 0, SCM_DEFINE (scm_array_fill_x, "array-fill!", 2, 0, 0,
(SCM ra, SCM fill), (SCM ra, SCM fill),
"Store @var{fill} in every element of @var{array}. The value returned\n" "Store @var{fill} in every element of array @var{ra}. The value\n"
"is unspecified.") "returned is unspecified.")
#define FUNC_NAME s_scm_array_fill_x #define FUNC_NAME s_scm_array_fill_x
{ {
scm_ramapc (scm_array_fill_int, fill, ra, SCM_EOL, FUNC_NAME); scm_ramapc (scm_array_fill_int, fill, ra, SCM_EOL, FUNC_NAME);
@ -374,9 +374,9 @@ SCM_REGISTER_PROC(s_array_copy_in_order_x, "array-copy-in-order!", 2, 0, 0, scm_
SCM_DEFINE (scm_array_copy_x, "array-copy!", 2, 0, 0, SCM_DEFINE (scm_array_copy_x, "array-copy!", 2, 0, 0,
(SCM src, SCM dst), (SCM src, SCM dst),
"@deffnx {Scheme Procedure} array-copy-in-order! src dst\n" "@deffnx {Scheme Procedure} array-copy-in-order! src dst\n"
"Copy every element from vector or array @var{source} to the\n" "Copy every element from vector or array @var{src} to the\n"
"corresponding element of @var{destination}. @var{destination} must have\n" "corresponding element of @var{dst}. @var{dst} must have the\n"
"the same rank as @var{source}, and be at least as large in each\n" "same rank as @var{src}, and be at least as large in each\n"
"dimension. The order is unspecified.") "dimension. The order is unspecified.")
#define FUNC_NAME s_scm_array_copy_x #define FUNC_NAME s_scm_array_copy_x
{ {
@ -670,12 +670,13 @@ SCM_SYMBOL (sym_b, "b");
SCM_DEFINE (scm_array_map_x, "array-map!", 2, 0, 1, SCM_DEFINE (scm_array_map_x, "array-map!", 2, 0, 1,
(SCM ra0, SCM proc, SCM lra), (SCM ra0, SCM proc, SCM lra),
"@deffnx {Scheme Procedure} array-map-in-order! ra0 proc . lra\n" "@deffnx {Scheme Procedure} array-map-in-order! ra0 proc . lra\n"
"@var{array1}, @dots{} must have the same number of dimensions as\n" "@var{array1}, @dots{} must have the same number of dimensions\n"
"@var{array0} and have a range for each index which includes the range\n" "as @var{ra0} and have a range for each index which includes the\n"
"for the corresponding index in @var{array0}. @var{proc} is applied to\n" "range for the corresponding index in @var{ra0}. @var{proc} is\n"
"each tuple of elements of @var{array1} @dots{} and the result is stored\n" "applied to each tuple of elements of @var{array1}, @dots{} and\n"
"as the corresponding element in @var{array0}. The value returned is\n" "the result is stored as the corresponding element in @var{ra0}.\n"
"unspecified. The order of application is unspecified.") "The value returned is unspecified. The order of application is\n"
"unspecified.")
#define FUNC_NAME s_scm_array_map_x #define FUNC_NAME s_scm_array_map_x
{ {
SCM_VALIDATE_PROC (2, proc); SCM_VALIDATE_PROC (2, proc);
@ -722,7 +723,7 @@ rafe (SCM ra0, SCM proc, SCM ras)
SCM_DEFINE (scm_array_for_each, "array-for-each", 2, 0, 1, SCM_DEFINE (scm_array_for_each, "array-for-each", 2, 0, 1,
(SCM proc, SCM ra0, SCM lra), (SCM proc, SCM ra0, SCM lra),
"Apply @var{proc} to each tuple of elements of @var{array0} @dots{}\n" "Apply @var{proc} to each tuple of elements of @var{ra0} @dots{}\n"
"in row-major order. The value returned is unspecified.") "in row-major order. The value returned is unspecified.")
#define FUNC_NAME s_scm_array_for_each #define FUNC_NAME s_scm_array_for_each
{ {
@ -735,7 +736,7 @@ SCM_DEFINE (scm_array_for_each, "array-for-each", 2, 0, 1,
SCM_DEFINE (scm_array_index_map_x, "array-index-map!", 2, 0, 0, SCM_DEFINE (scm_array_index_map_x, "array-index-map!", 2, 0, 0,
(SCM ra, SCM proc), (SCM ra, SCM proc),
"Apply @var{proc} to the indices of each element of @var{array} in\n" "Apply @var{proc} to the indices of each element of @var{ra} in\n"
"turn, storing the result in the corresponding element. The value\n" "turn, storing the result in the corresponding element. The value\n"
"returned and the order of application are unspecified.\n\n" "returned and the order of application are unspecified.\n\n"
"One can implement @var{array-indexes} as\n" "One can implement @var{array-indexes} as\n"

View file

@ -326,11 +326,12 @@ scm_i_ra_set_contp (SCM ra)
SCM_DEFINE (scm_make_shared_array, "make-shared-array", 2, 0, 1, SCM_DEFINE (scm_make_shared_array, "make-shared-array", 2, 0, 1,
(SCM oldra, SCM mapfunc, SCM dims), (SCM oldra, SCM mapfunc, SCM dims),
"@code{make-shared-array} can be used to create shared subarrays of other\n" "@code{make-shared-array} can be used to create shared subarrays\n"
"arrays. The @var{mapper} is a function that translates coordinates in\n" "of other arrays. The @var{mapfunc} is a function that\n"
"the new array into coordinates in the old array. A @var{mapper} must be\n" "translates coordinates in the new array into coordinates in the\n"
"linear, and its range must stay within the bounds of the old array, but\n" "old array. A @var{mapfunc} must be linear, and its range must\n"
"it can be otherwise arbitrary. A simple example:\n" "stay within the bounds of the old array, but it can be\n"
"otherwise arbitrary. A simple example:\n"
"@lisp\n" "@lisp\n"
"(define fred (make-array #f 8 8))\n" "(define fred (make-array #f 8 8))\n"
"(define freds-diagonal\n" "(define freds-diagonal\n"
@ -444,18 +445,18 @@ SCM_DEFINE (scm_make_shared_array, "make-shared-array", 2, 0, 1,
/* args are RA . DIMS */ /* args are RA . DIMS */
SCM_DEFINE (scm_transpose_array, "transpose-array", 1, 0, 1, SCM_DEFINE (scm_transpose_array, "transpose-array", 1, 0, 1,
(SCM ra, SCM args), (SCM ra, SCM args),
"Return an array sharing contents with @var{array}, but with\n" "Return an array sharing contents with @var{ra}, but with\n"
"dimensions arranged in a different order. There must be one\n" "dimensions arranged in a different order. There must be one\n"
"@var{dim} argument for each dimension of @var{array}.\n" "@var{dim} argument for each dimension of @var{ra}.\n"
"@var{dim0}, @var{dim1}, @dots{} should be integers between 0\n" "@var{dim0}, @var{dim1}, @dots{} should be integers between 0\n"
"and the rank of the array to be returned. Each integer in that\n" "and the rank of the array to be returned. Each integer in that\n"
"range must appear at least once in the argument list.\n" "range must appear at least once in the argument list.\n"
"\n" "\n"
"The values of @var{dim0}, @var{dim1}, @dots{} correspond to\n" "The values of @var{dim0}, @var{dim1}, @dots{} correspond to\n"
"dimensions in the array to be returned, their positions in the\n" "dimensions in the array to be returned, their positions in the\n"
"argument list to dimensions of @var{array}. Several @var{dim}s\n" "argument list to dimensions of @var{ra}. Several @var{dim}s\n"
"may have the same value, in which case the returned array will\n" "may have the same value, in which case the returned array will\n"
"have smaller rank than @var{array}.\n" "have smaller rank than @var{ra}.\n"
"\n" "\n"
"@lisp\n" "@lisp\n"
"(transpose-array '#2((a b) (c d)) 1 0) @result{} #2((a c) (b d))\n" "(transpose-array '#2((a b) (c d)) 1 0) @result{} #2((a c) (b d))\n"
@ -546,15 +547,15 @@ SCM_DEFINE (scm_transpose_array, "transpose-array", 1, 0, 1,
wouldn't have contiguous elements. */ wouldn't have contiguous elements. */
SCM_DEFINE (scm_array_contents, "array-contents", 1, 1, 0, SCM_DEFINE (scm_array_contents, "array-contents", 1, 1, 0,
(SCM ra, SCM strict), (SCM ra, SCM strict),
"If @var{array} may be @dfn{unrolled} into a one dimensional shared array\n" "If @var{ra} may be @dfn{unrolled} into a one dimensional shared\n"
"without changing their order (last subscript changing fastest), then\n" "array without changing their order (last subscript changing\n"
"@code{array-contents} returns that shared array, otherwise it returns\n" "fastest), then @code{array-contents} returns that shared array,\n"
"@code{#f}. All arrays made by @var{make-array} and\n" "otherwise it returns @code{#f}. All arrays made by\n"
"@var{make-uniform-array} may be unrolled, some arrays made by\n" "@code{make-array} and @code{make-uniform-array} may be unrolled,\n"
"@var{make-shared-array} may not be.\n\n" "some arrays made by @code{make-shared-array} may not be. If\n"
"If the optional argument @var{strict} is provided, a shared array will\n" "the optional argument @var{strict} is provided, a shared array\n"
"be returned only if its elements are stored internally contiguous in\n" "will be returned only if its elements are stored internally\n"
"memory.") "contiguous in memory.")
#define FUNC_NAME s_scm_array_contents #define FUNC_NAME s_scm_array_contents
{ {
SCM sra; SCM sra;

View file

@ -497,7 +497,7 @@ SCM_DEFINE (scm_bit_position, "bit-position", 3, 0, 0,
"Return the index of the first occurrence of @var{item} in bit\n" "Return the index of the first occurrence of @var{item} in bit\n"
"vector @var{v}, starting from @var{k}. If there is no\n" "vector @var{v}, starting from @var{k}. If there is no\n"
"@var{item} entry between @var{k} and the end of\n" "@var{item} entry between @var{k} and the end of\n"
"@var{bitvector}, then return @code{#f}. For example,\n" "@var{v}, then return @code{#f}. For example,\n"
"\n" "\n"
"@example\n" "@example\n"
"(bit-position #t #*000101 0) @result{} 3\n" "(bit-position #t #*000101 0) @result{} 3\n"

View file

@ -465,7 +465,7 @@ static int fstat_Win32 (int fdes, struct stat *buf)
SCM_DEFINE (scm_stat, "stat", 1, 1, 0, SCM_DEFINE (scm_stat, "stat", 1, 1, 0,
(SCM object, SCM exception_on_error), (SCM object, SCM exception_on_error),
"Return an object containing various information about the file\n" "Return an object containing various information about the file\n"
"determined by @var{obj}. @var{obj} can be a string containing\n" "determined by @var{object}. @var{object} can be a string containing\n"
"a file name or a port or integer file descriptor which is open\n" "a file name or a port or integer file descriptor which is open\n"
"on a file (in which case @code{fstat} is used as the underlying\n" "on a file (in which case @code{fstat} is used as the underlying\n"
"system call).\n" "system call).\n"
@ -586,7 +586,7 @@ SCM_DEFINE (scm_lstat, "lstat", 1, 0, 0,
(SCM str), (SCM str),
"Similar to @code{stat}, but does not follow symbolic links, i.e.,\n" "Similar to @code{stat}, but does not follow symbolic links, i.e.,\n"
"it will return information about a symbolic link itself, not the\n" "it will return information about a symbolic link itself, not the\n"
"file it points to. @var{path} must be a string.") "file it points to. @var{str} must be a string.")
#define FUNC_NAME s_scm_lstat #define FUNC_NAME s_scm_lstat
{ {
int rv; int rv;
@ -640,7 +640,7 @@ SCM_DEFINE (scm_link, "link", 2, 0, 0,
SCM_DEFINE (scm_chdir, "chdir", 1, 0, 0, SCM_DEFINE (scm_chdir, "chdir", 1, 0, 0,
(SCM str), (SCM str),
"Change the current working directory to @var{path}.\n" "Change the current working directory to @var{str}.\n"
"The return value is unspecified.") "The return value is unspecified.")
#define FUNC_NAME s_scm_chdir #define FUNC_NAME s_scm_chdir
{ {
@ -942,10 +942,10 @@ SCM_DEFINE (scm_select, "select", 3, 2, 0,
#ifdef HAVE_FCNTL #ifdef HAVE_FCNTL
SCM_DEFINE (scm_fcntl, "fcntl", 2, 1, 0, SCM_DEFINE (scm_fcntl, "fcntl", 2, 1, 0,
(SCM object, SCM cmd, SCM value), (SCM object, SCM cmd, SCM value),
"Apply @var{command} to the specified file descriptor or the underlying\n" "Apply @var{cmd} to the specified file descriptor or the underlying\n"
"file descriptor of the specified port. @var{value} is an optional\n" "file descriptor of the specified port. @var{value} is an optional\n"
"integer argument.\n\n" "integer argument.\n\n"
"Values for @var{command} are:\n\n" "Values for @var{cmd} are:\n\n"
"@table @code\n" "@table @code\n"
"@item F_DUPFD\n" "@item F_DUPFD\n"
"Duplicate a file descriptor\n" "Duplicate a file descriptor\n"
@ -993,9 +993,9 @@ SCM_DEFINE (scm_fcntl, "fcntl", 2, 1, 0,
SCM_DEFINE (scm_fsync, "fsync", 1, 0, 0, SCM_DEFINE (scm_fsync, "fsync", 1, 0, 0,
(SCM object), (SCM object),
"Copies any unwritten data for the specified output file descriptor to disk.\n" "Copies any unwritten data for the specified output file\n"
"If @var{port/fd} is a port, its buffer is flushed before the underlying\n" "descriptor to disk. If @var{object} is a port, its buffer is\n"
"file descriptor is fsync'd.\n" "flushed before the underlying file descriptor is fsync'd.\n"
"The return value is unspecified.") "The return value is unspecified.")
#define FUNC_NAME s_scm_fsync #define FUNC_NAME s_scm_fsync
{ {
@ -1020,8 +1020,9 @@ SCM_DEFINE (scm_fsync, "fsync", 1, 0, 0,
#ifdef HAVE_SYMLINK #ifdef HAVE_SYMLINK
SCM_DEFINE (scm_symlink, "symlink", 2, 0, 0, SCM_DEFINE (scm_symlink, "symlink", 2, 0, 0,
(SCM oldpath, SCM newpath), (SCM oldpath, SCM newpath),
"Create a symbolic link named @var{path-to} with the value (i.e., pointing to)\n" "Create a symbolic link named @var{oldpath} with the value\n"
"@var{path-from}. The return value is unspecified.") "(i.e., pointing to) @var{newpath}. The return value is\n"
"unspecified.")
#define FUNC_NAME s_scm_symlink #define FUNC_NAME s_scm_symlink
{ {
int val; int val;
@ -1079,7 +1080,7 @@ SCM_DEFINE (scm_readlink, "readlink", 1, 0, 0,
SCM_DEFINE (scm_copy_file, "copy-file", 2, 0, 0, SCM_DEFINE (scm_copy_file, "copy-file", 2, 0, 0,
(SCM oldfile, SCM newfile), (SCM oldfile, SCM newfile),
"Copy the file specified by @var{path-from} to @var{path-to}.\n" "Copy the file specified by @var{oldfile} to @var{newfile}.\n"
"The return value is unspecified.") "The return value is unspecified.")
#define FUNC_NAME s_scm_copy_file #define FUNC_NAME s_scm_copy_file
{ {
@ -1257,7 +1258,7 @@ SCM_DEFINE (scm_rename, "rename-file", 2, 0, 0,
SCM_DEFINE (scm_delete_file, "delete-file", 1, 0, 0, SCM_DEFINE (scm_delete_file, "delete-file", 1, 0, 0,
(SCM str), (SCM str),
"Deletes (or \"unlinks\") the file specified by @var{path}.") "Deletes (or \"unlinks\") the file specified by @var{str}.")
#define FUNC_NAME s_scm_delete_file #define FUNC_NAME s_scm_delete_file
{ {
int ans; int ans;
@ -1325,12 +1326,12 @@ SCM_DEFINE (scm_access, "access?", 2, 0, 0,
SCM_DEFINE (scm_chmod, "chmod", 2, 0, 0, SCM_DEFINE (scm_chmod, "chmod", 2, 0, 0,
(SCM object, SCM mode), (SCM object, SCM mode),
"Changes the permissions of the file referred to by @var{obj}.\n" "Changes the permissions of the file referred to by\n"
"@var{obj} can be a string containing a file name or a port or integer file\n" "@var{object}. @var{object} can be a string containing a file\n"
"descriptor which is open on a file (in which case @code{fchmod} is used\n" "name or a port or integer file descriptor which is open on a\n"
"as the underlying system call).\n" "file (in which case @code{fchmod} is used as the underlying\n"
"@var{mode} specifies\n" "system call). @var{mode} specifies the new permissions as a\n"
"the new permissions as a decimal number, e.g., @code{(chmod \"foo\" #o755)}.\n" "decimal number, e.g., @code{(chmod \"foo\" #o755)}.\n"
"The return value is unspecified.") "The return value is unspecified.")
#define FUNC_NAME s_scm_chmod #define FUNC_NAME s_scm_chmod
{ {
@ -1488,7 +1489,7 @@ SCM_DEFINE (scm_basename, "basename", 1, 1, 0,
"Return the base name of the file name @var{filename}. The\n" "Return the base name of the file name @var{filename}. The\n"
"base name is the file name without any directory components.\n" "base name is the file name without any directory components.\n"
"If @var{suffix} is provided, and is equal to the end of\n" "If @var{suffix} is provided, and is equal to the end of\n"
"@var{basename}, it is removed also.") "@var{filename}, it is removed also.")
#define FUNC_NAME s_scm_basename #define FUNC_NAME s_scm_basename
{ {
int i, j, len, end; int i, j, len, end;
@ -1625,7 +1626,7 @@ scm_t_bits scm_tc16_dir;
SCM_DEFINE (scm_directory_stream_p, "directory-stream?", 1, 0, 0, SCM_DEFINE (scm_directory_stream_p, "directory-stream?", 1, 0, 0,
(SCM obj), (SCM obj),
"Return a boolean indicating whether @var{object} is a directory\n" "Return a boolean indicating whether @var{obj} is a directory\n"
"stream as returned by @code{opendir}.") "stream as returned by @code{opendir}.")
#define FUNC_NAME s_scm_directory_stream_p #define FUNC_NAME s_scm_directory_stream_p
{ {
@ -1636,7 +1637,7 @@ SCM_DEFINE (scm_directory_stream_p, "directory-stream?", 1, 0, 0,
SCM_DEFINE (scm_opendir, "opendir", 1, 0, 0, SCM_DEFINE (scm_opendir, "opendir", 1, 0, 0,
(SCM dirname), (SCM dirname),
"Open the directory specified by @var{path} and return a directory\n" "Open the directory specified by @var{dirname} and return a directory\n"
"stream.") "stream.")
#define FUNC_NAME s_scm_opendir #define FUNC_NAME s_scm_opendir
{ {
@ -1658,7 +1659,7 @@ SCM_DEFINE (scm_opendir, "opendir", 1, 0, 0,
SCM_DEFINE (scm_readdir, "readdir", 1, 0, 0, SCM_DEFINE (scm_readdir, "readdir", 1, 0, 0,
(SCM port), (SCM port),
"Return (as a string) the next directory entry from the directory stream\n" "Return (as a string) the next directory entry from the directory stream\n"
"@var{stream}. If there is no remaining entry to be read then the\n" "@var{port}. If there is no remaining entry to be read then the\n"
"end of file object is returned.") "end of file object is returned.")
#define FUNC_NAME s_scm_readdir #define FUNC_NAME s_scm_readdir
{ {
@ -1732,7 +1733,7 @@ SCM_DEFINE (scm_readdir, "readdir", 1, 0, 0,
SCM_DEFINE (scm_rewinddir, "rewinddir", 1, 0, 0, SCM_DEFINE (scm_rewinddir, "rewinddir", 1, 0, 0,
(SCM port), (SCM port),
"Reset the directory port @var{stream} so that the next call to\n" "Reset the directory port @var{port} so that the next call to\n"
"@code{readdir} will return the first directory entry.") "@code{readdir} will return the first directory entry.")
#define FUNC_NAME s_scm_rewinddir #define FUNC_NAME s_scm_rewinddir
{ {
@ -1749,7 +1750,7 @@ SCM_DEFINE (scm_rewinddir, "rewinddir", 1, 0, 0,
SCM_DEFINE (scm_closedir, "closedir", 1, 0, 0, SCM_DEFINE (scm_closedir, "closedir", 1, 0, 0,
(SCM port), (SCM port),
"Close the directory stream @var{stream}.\n" "Close the directory stream @var{port}.\n"
"The return value is unspecified.") "The return value is unspecified.")
#define FUNC_NAME s_scm_closedir #define FUNC_NAME s_scm_closedir
{ {

View file

@ -1141,11 +1141,11 @@ invoke_closure (ffi_cif *cif, void *ret, void **args, void *data)
SCM_DEFINE (scm_procedure_to_pointer, "procedure->pointer", 3, 0, 0, SCM_DEFINE (scm_procedure_to_pointer, "procedure->pointer", 3, 0, 0,
(SCM return_type, SCM proc, SCM arg_types), (SCM return_type, SCM proc, SCM arg_types),
"Return a pointer to a C function of type @var{return-type}\n" "Return a pointer to a C function of type @var{return_type}\n"
"taking arguments of types @var{arg-types} (a list) and\n" "taking arguments of types @var{arg_types} (a list) and\n"
"behaving as a proxy to procedure @var{proc}. Thus\n" "behaving as a proxy to procedure @var{proc}. Thus\n"
"@var{proc}'s arity, supported argument types, and return\n" "@var{proc}'s arity, supported argument types, and return\n"
"type should match @var{return-type} and @var{arg-types}.\n") "type should match @var{return_type} and @var{arg_types}.\n")
#define FUNC_NAME s_scm_procedure_to_pointer #define FUNC_NAME s_scm_procedure_to_pointer
{ {
SCM cif_pointer, pointer; SCM cif_pointer, pointer;

View file

@ -198,7 +198,7 @@ SCM_DEFINE (scm_array_in_bounds_p, "array-in-bounds?", 1, 0, 1,
SCM_DEFINE (scm_array_ref, "array-ref", 1, 0, 1, SCM_DEFINE (scm_array_ref, "array-ref", 1, 0, 1,
(SCM v, SCM args), (SCM v, SCM args),
"Return the element at the @code{(index1, index2)} element in\n" "Return the element at the @code{(index1, index2)} element in\n"
"@var{array}.") "array @var{v}.")
#define FUNC_NAME s_scm_array_ref #define FUNC_NAME s_scm_array_ref
{ {
scm_t_array_handle handle; scm_t_array_handle handle;
@ -214,8 +214,9 @@ SCM_DEFINE (scm_array_ref, "array-ref", 1, 0, 1,
SCM_DEFINE (scm_array_set_x, "array-set!", 2, 0, 1, SCM_DEFINE (scm_array_set_x, "array-set!", 2, 0, 1,
(SCM v, SCM obj, SCM args), (SCM v, SCM obj, SCM args),
"Set the element at the @code{(index1, index2)} element in @var{array} to\n" "Set the element at the @code{(index1, index2)} element in array\n"
"@var{new-value}. The value returned by array-set! is unspecified.") "@var{v} to @var{obj}. The value returned by @code{array-set!}\n"
"is unspecified.")
#define FUNC_NAME s_scm_array_set_x #define FUNC_NAME s_scm_array_set_x
{ {
scm_t_array_handle handle; scm_t_array_handle handle;

View file

@ -923,7 +923,7 @@ SCM_DEFINE (scm_hashq_ref, "hashq-ref", 2, 1, 0,
(SCM table, SCM key, SCM dflt), (SCM table, SCM key, SCM dflt),
"Look up @var{key} in the hash table @var{table}, and return the\n" "Look up @var{key} in the hash table @var{table}, and return the\n"
"value (if any) associated with it. If @var{key} is not found,\n" "value (if any) associated with it. If @var{key} is not found,\n"
"return @var{default} (or @code{#f} if no @var{default} argument\n" "return @var{dflt} (or @code{#f} if no @var{dflt} argument\n"
"is supplied). Uses @code{eq?} for equality testing.") "is supplied). Uses @code{eq?} for equality testing.")
#define FUNC_NAME s_scm_hashq_ref #define FUNC_NAME s_scm_hashq_ref
{ {
@ -941,7 +941,7 @@ SCM_DEFINE (scm_hashq_ref, "hashq-ref", 2, 1, 0,
SCM_DEFINE (scm_hashq_set_x, "hashq-set!", 3, 0, 0, SCM_DEFINE (scm_hashq_set_x, "hashq-set!", 3, 0, 0,
(SCM table, SCM key, SCM val), (SCM table, SCM key, SCM val),
"Find the entry in @var{table} associated with @var{key}, and\n" "Find the entry in @var{table} associated with @var{key}, and\n"
"store @var{value} there. Uses @code{eq?} for equality testing.") "store @var{val} there. Uses @code{eq?} for equality testing.")
#define FUNC_NAME s_scm_hashq_set_x #define FUNC_NAME s_scm_hashq_set_x
{ {
return scm_hash_fn_set_x (table, key, val, return scm_hash_fn_set_x (table, key, val,
@ -1010,7 +1010,7 @@ SCM_DEFINE (scm_hashv_ref, "hashv-ref", 2, 1, 0,
(SCM table, SCM key, SCM dflt), (SCM table, SCM key, SCM dflt),
"Look up @var{key} in the hash table @var{table}, and return the\n" "Look up @var{key} in the hash table @var{table}, and return the\n"
"value (if any) associated with it. If @var{key} is not found,\n" "value (if any) associated with it. If @var{key} is not found,\n"
"return @var{default} (or @code{#f} if no @var{default} argument\n" "return @var{dflt} (or @code{#f} if no @var{dflt} argument\n"
"is supplied). Uses @code{eqv?} for equality testing.") "is supplied). Uses @code{eqv?} for equality testing.")
#define FUNC_NAME s_scm_hashv_ref #define FUNC_NAME s_scm_hashv_ref
{ {
@ -1095,7 +1095,7 @@ SCM_DEFINE (scm_hash_ref, "hash-ref", 2, 1, 0,
(SCM table, SCM key, SCM dflt), (SCM table, SCM key, SCM dflt),
"Look up @var{key} in the hash table @var{table}, and return the\n" "Look up @var{key} in the hash table @var{table}, and return the\n"
"value (if any) associated with it. If @var{key} is not found,\n" "value (if any) associated with it. If @var{key} is not found,\n"
"return @var{default} (or @code{#f} if no @var{default} argument\n" "return @var{dflt} (or @code{#f} if no @var{dflt} argument\n"
"is supplied). Uses @code{equal?} for equality testing.") "is supplied). Uses @code{equal?} for equality testing.")
#define FUNC_NAME s_scm_hash_ref #define FUNC_NAME s_scm_hash_ref
{ {
@ -1113,7 +1113,7 @@ SCM_DEFINE (scm_hash_ref, "hash-ref", 2, 1, 0,
SCM_DEFINE (scm_hash_set_x, "hash-set!", 3, 0, 0, SCM_DEFINE (scm_hash_set_x, "hash-set!", 3, 0, 0,
(SCM table, SCM key, SCM val), (SCM table, SCM key, SCM val),
"Find the entry in @var{table} associated with @var{key}, and\n" "Find the entry in @var{table} associated with @var{key}, and\n"
"store @var{value} there. Uses @code{equal?} for equality\n" "store @var{val} there. Uses @code{equal?} for equality\n"
"testing.") "testing.")
#define FUNC_NAME s_scm_hash_set_x #define FUNC_NAME s_scm_hash_set_x
{ {

View file

@ -49,7 +49,7 @@
SCM_DEFINE (scm_ftell, "ftell", 1, 0, 0, SCM_DEFINE (scm_ftell, "ftell", 1, 0, 0,
(SCM fd_port), (SCM fd_port),
"Return an integer representing the current position of\n" "Return an integer representing the current position of\n"
"@var{fd/port}, measured from the beginning. Equivalent to:\n" "@var{fd_port}, measured from the beginning. Equivalent to:\n"
"\n" "\n"
"@lisp\n" "@lisp\n"
"(seek port 0 SEEK_CUR)\n" "(seek port 0 SEEK_CUR)\n"
@ -63,8 +63,8 @@ SCM_DEFINE (scm_ftell, "ftell", 1, 0, 0,
SCM_DEFINE (scm_redirect_port, "redirect-port", 2, 0, 0, SCM_DEFINE (scm_redirect_port, "redirect-port", 2, 0, 0,
(SCM old, SCM new), (SCM old, SCM new),
"This procedure takes two ports and duplicates the underlying file\n" "This procedure takes two ports and duplicates the underlying file\n"
"descriptor from @var{old-port} into @var{new-port}. The\n" "descriptor from @var{old} into @var{new}. The\n"
"current file descriptor in @var{new-port} will be closed.\n" "current file descriptor in @var{new} will be closed.\n"
"After the redirection the two ports will share a file position\n" "After the redirection the two ports will share a file position\n"
"and file status flags.\n\n" "and file status flags.\n\n"
"The return value is unspecified.\n\n" "The return value is unspecified.\n\n"
@ -236,7 +236,7 @@ SCM_DEFINE (scm_fdopen, "fdopen", 2, 0, 0,
SCM_DEFINE (scm_primitive_move_to_fdes, "primitive-move->fdes", 2, 0, 0, SCM_DEFINE (scm_primitive_move_to_fdes, "primitive-move->fdes", 2, 0, 0,
(SCM port, SCM fd), (SCM port, SCM fd),
"Moves the underlying file descriptor for @var{port} to the integer\n" "Moves the underlying file descriptor for @var{port} to the integer\n"
"value @var{fdes} without changing the revealed count of @var{port}.\n" "value @var{fd} without changing the revealed count of @var{port}.\n"
"Any other ports already using this descriptor will be automatically\n" "Any other ports already using this descriptor will be automatically\n"
"shifted to new descriptors and their revealed counts reset to zero.\n" "shifted to new descriptors and their revealed counts reset to zero.\n"
"The return value is @code{#f} if the file descriptor already had the\n" "The return value is @code{#f} if the file descriptor already had the\n"
@ -284,7 +284,7 @@ get_matching_port (void *closure, SCM port, SCM val, SCM result)
/* Return a list of ports using a given file descriptor. */ /* Return a list of ports using a given file descriptor. */
SCM_DEFINE (scm_fdes_to_ports, "fdes->ports", 1, 0, 0, SCM_DEFINE (scm_fdes_to_ports, "fdes->ports", 1, 0, 0,
(SCM fd), (SCM fd),
"Return a list of existing ports which have @var{fdes} as an\n" "Return a list of existing ports which have @var{fd} as an\n"
"underlying file descriptor, without changing their revealed\n" "underlying file descriptor, without changing their revealed\n"
"counts.") "counts.")
#define FUNC_NAME s_scm_fdes_to_ports #define FUNC_NAME s_scm_fdes_to_ports

View file

@ -571,9 +571,9 @@ SCM_DEFINE (scm_search_path, "search-path", 2, 0, 1,
"@var{filename}. The file must be readable, and not a directory.\n" "@var{filename}. The file must be readable, and not a directory.\n"
"If we find one, return its full filename; otherwise, return\n" "If we find one, return its full filename; otherwise, return\n"
"@code{#f}. If @var{filename} is absolute, return it unchanged.\n" "@code{#f}. If @var{filename} is absolute, return it unchanged.\n"
"If given, @var{extensions} is a list of strings; for each\n" "If given, @var{rest} is a list of extension strings; for each\n"
"directory in @var{path}, we search for @var{filename}\n" "directory in @var{path}, we search for @var{filename}\n"
"concatenated with each @var{extension}.") "concatenated with each extension.")
#define FUNC_NAME s_scm_search_path #define FUNC_NAME s_scm_search_path
{ {
SCM extensions, require_exts; SCM extensions, require_exts;

View file

@ -8701,8 +8701,8 @@ scm_c_make_rectangular (double re, double im)
SCM_DEFINE (scm_make_rectangular, "make-rectangular", 2, 0, 0, SCM_DEFINE (scm_make_rectangular, "make-rectangular", 2, 0, 0,
(SCM real_part, SCM imaginary_part), (SCM real_part, SCM imaginary_part),
"Return a complex number constructed of the given @var{real-part} " "Return a complex number constructed of the given @var{real_part} "
"and @var{imaginary-part} parts.") "and @var{imaginary_part} parts.")
#define FUNC_NAME s_scm_make_rectangular #define FUNC_NAME s_scm_make_rectangular
{ {
SCM_ASSERT_TYPE (scm_is_real (real_part), real_part, SCM_ASSERT_TYPE (scm_is_real (real_part), real_part,

View file

@ -1,5 +1,5 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, /* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004,
* 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. * 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License * modify it under the terms of the GNU Lesser General Public License
@ -940,9 +940,9 @@ SCM_DEFINE (scm_port_for_each, "port-for-each", 1, 0, 0,
"Apply @var{proc} to each port in the Guile port table\n" "Apply @var{proc} to each port in the Guile port table\n"
"in turn. The return value is unspecified. More specifically,\n" "in turn. The return value is unspecified. More specifically,\n"
"@var{proc} is applied exactly once to every port that exists\n" "@var{proc} is applied exactly once to every port that exists\n"
"in the system at the time @var{port-for-each} is invoked.\n" "in the system at the time @code{port-for-each} is invoked.\n"
"Changes to the port table while @var{port-for-each} is running\n" "Changes to the port table while @code{port-for-each} is running\n"
"have no effect as far as @var{port-for-each} is concerned.") "have no effect as far as @code{port-for-each} is concerned.")
#define FUNC_NAME s_scm_port_for_each #define FUNC_NAME s_scm_port_for_each
{ {
SCM ports; SCM ports;
@ -1861,10 +1861,11 @@ SCM_DEFINE (scm_peek_char, "peek-char", 0, 1, 0,
SCM_DEFINE (scm_unread_char, "unread-char", 1, 1, 0, SCM_DEFINE (scm_unread_char, "unread-char", 1, 1, 0,
(SCM cobj, SCM port), (SCM cobj, SCM port),
"Place @var{char} in @var{port} so that it will be read by the\n" "Place character @var{cobj} in @var{port} so that it will be\n"
"next read operation. If called multiple times, the unread characters\n" "read by the next read operation. If called multiple times, the\n"
"will be read again in last-in first-out order. If @var{port} is\n" "unread characters will be read again in last-in first-out\n"
"not supplied, the current input port is used.") "order. If @var{port} is not supplied, the current input port\n"
"is used.")
#define FUNC_NAME s_scm_unread_char #define FUNC_NAME s_scm_unread_char
{ {
int c; int c;
@ -1906,7 +1907,7 @@ SCM_DEFINE (scm_unread_string, "unread-string", 2, 0, 0,
SCM_DEFINE (scm_seek, "seek", 3, 0, 0, SCM_DEFINE (scm_seek, "seek", 3, 0, 0,
(SCM fd_port, SCM offset, SCM whence), (SCM fd_port, SCM offset, SCM whence),
"Sets the current position of @var{fd/port} to the integer\n" "Sets the current position of @var{fd_port} to the integer\n"
"@var{offset}, which is interpreted according to the value of\n" "@var{offset}, which is interpreted according to the value of\n"
"@var{whence}.\n" "@var{whence}.\n"
"\n" "\n"
@ -1921,7 +1922,7 @@ SCM_DEFINE (scm_seek, "seek", 3, 0, 0,
"@defvar SEEK_END\n" "@defvar SEEK_END\n"
"Seek from the end of the file.\n" "Seek from the end of the file.\n"
"@end defvar\n" "@end defvar\n"
"If @var{fd/port} is a file descriptor, the underlying system\n" "If @var{fd_port} is a file descriptor, the underlying system\n"
"call is @code{lseek}. @var{port} may be a string port.\n" "call is @code{lseek}. @var{port} may be a string port.\n"
"\n" "\n"
"The value returned is the new position in the file. This means\n" "The value returned is the new position in the file. This means\n"
@ -1995,8 +1996,9 @@ truncate (const char *file, off_t length)
SCM_DEFINE (scm_truncate_file, "truncate-file", 1, 1, 0, SCM_DEFINE (scm_truncate_file, "truncate-file", 1, 1, 0,
(SCM object, SCM length), (SCM object, SCM length),
"Truncate @var{file} to @var{length} bytes. @var{file} can be a\n" "Truncate file @var{object} to @var{length} bytes. @var{object}\n"
"filename string, a port object, or an integer file descriptor.\n" "can be a filename string, a port object, or an integer file\n"
"descriptor.\n"
"The return value is unspecified.\n" "The return value is unspecified.\n"
"\n" "\n"
"For a port or file descriptor @var{length} can be omitted, in\n" "For a port or file descriptor @var{length} can be omitted, in\n"

View file

@ -285,7 +285,7 @@ SCM_DEFINE (scm_getgroups, "getgroups", 0, 0, 0,
SCM_DEFINE (scm_setgroups, "setgroups", 1, 0, 0, SCM_DEFINE (scm_setgroups, "setgroups", 1, 0, 0,
(SCM group_vec), (SCM group_vec),
"Set the current set of supplementary group IDs to the integers\n" "Set the current set of supplementary group IDs to the integers\n"
"in the given vector @var{vec}. The return value is\n" "in the given vector @var{group_vec}. The return value is\n"
"unspecified.\n" "unspecified.\n"
"\n" "\n"
"Generally only the superuser can set the process group IDs.") "Generally only the superuser can set the process group IDs.")
@ -335,9 +335,10 @@ SCM_DEFINE (scm_setgroups, "setgroups", 1, 0, 0,
#ifdef HAVE_GETPWENT #ifdef HAVE_GETPWENT
SCM_DEFINE (scm_getpwuid, "getpw", 0, 1, 0, SCM_DEFINE (scm_getpwuid, "getpw", 0, 1, 0,
(SCM user), (SCM user),
"Look up an entry in the user database. @var{obj} can be an integer,\n" "Look up an entry in the user database. @var{user} can be an\n"
"a string, or omitted, giving the behaviour of getpwuid, getpwnam\n" "integer, a string, or omitted, giving the behaviour of\n"
"or getpwent respectively.") "@code{getpwuid}, @code{getpwnam} or @code{getpwent}\n"
"respectively.")
#define FUNC_NAME s_scm_getpwuid #define FUNC_NAME s_scm_getpwuid
{ {
struct passwd *entry; struct passwd *entry;
@ -404,9 +405,10 @@ SCM_DEFINE (scm_setpwent, "setpw", 0, 1, 0,
/* Combines getgrgid and getgrnam. */ /* Combines getgrgid and getgrnam. */
SCM_DEFINE (scm_getgrgid, "getgr", 0, 1, 0, SCM_DEFINE (scm_getgrgid, "getgr", 0, 1, 0,
(SCM name), (SCM name),
"Look up an entry in the group database. @var{obj} can be an integer,\n" "Look up an entry in the group database. @var{name} can be an\n"
"a string, or omitted, giving the behaviour of getgrgid, getgrnam\n" "integer, a string, or omitted, giving the behaviour of\n"
"or getgrent respectively.") "@code{getgrgid}, @code{getgrnam} or @code{getgrent}\n"
"respectively.")
#define FUNC_NAME s_scm_getgrgid #define FUNC_NAME s_scm_getgrgid
{ {
struct group *entry; struct group *entry;
@ -698,7 +700,7 @@ SCM_DEFINE (scm_waitpid, "waitpid", 1, 1, 0,
"group.\n" "group.\n"
"@item @var{pid} less than -1\n" "@item @var{pid} less than -1\n"
"Request status information for any child process whose process group ID\n" "Request status information for any child process whose process group ID\n"
"is -@var{PID}.\n" "is -@var{pid}.\n"
"@end table\n\n" "@end table\n\n"
"The @var{options} argument, if supplied, should be the bitwise OR of the\n" "The @var{options} argument, if supplied, should be the bitwise OR of the\n"
"values of zero or more of the following variables:\n\n" "values of zero or more of the following variables:\n\n"
@ -1122,10 +1124,10 @@ SCM_DEFINE (scm_tcsetpgrp, "tcsetpgrp", 2, 0, 0,
SCM_DEFINE (scm_execl, "execl", 1, 0, 1, SCM_DEFINE (scm_execl, "execl", 1, 0, 1,
(SCM filename, SCM args), (SCM filename, SCM args),
"Executes the file named by @var{path} as a new process image.\n" "Executes the file named by @var{filename} as a new process image.\n"
"The remaining arguments are supplied to the process; from a C program\n" "The remaining arguments are supplied to the process; from a C program\n"
"they are accessible as the @code{argv} argument to @code{main}.\n" "they are accessible as the @code{argv} argument to @code{main}.\n"
"Conventionally the first @var{arg} is the same as @var{path}.\n" "Conventionally the first @var{arg} is the same as @var{filename}.\n"
"All arguments must be strings.\n\n" "All arguments must be strings.\n\n"
"If @var{arg} is missing, @var{path} is executed with a null\n" "If @var{arg} is missing, @var{path} is executed with a null\n"
"argument list, which may have system-dependent side-effects.\n\n" "argument list, which may have system-dependent side-effects.\n\n"
@ -1359,7 +1361,7 @@ SCM_DEFINE (scm_utime, "utime", 1, 5, 0,
(SCM pathname, SCM actime, SCM modtime, SCM actimens, SCM modtimens, (SCM pathname, SCM actime, SCM modtime, SCM actimens, SCM modtimens,
SCM flags), SCM flags),
"@code{utime} sets the access and modification times for the\n" "@code{utime} sets the access and modification times for the\n"
"file named by @var{path}. If @var{actime} or @var{modtime} is\n" "file named by @var{pathname}. If @var{actime} or @var{modtime} is\n"
"not supplied, then the current time is used. @var{actime} and\n" "not supplied, then the current time is used. @var{actime} and\n"
"@var{modtime} must be integer time values as returned by the\n" "@var{modtime} must be integer time values as returned by the\n"
"@code{current-time} procedure.\n\n" "@code{current-time} procedure.\n\n"
@ -1461,14 +1463,14 @@ SCM_DEFINE (scm_getpid, "getpid", 0, 0, 0,
SCM_DEFINE (scm_putenv, "putenv", 1, 0, 0, SCM_DEFINE (scm_putenv, "putenv", 1, 0, 0,
(SCM str), (SCM str),
"Modifies the environment of the current process, which is\n" "Modifies the environment of the current process, which is also\n"
"also the default environment inherited by child processes.\n\n" "the default environment inherited by child processes. If\n"
"If @var{string} is of the form @code{NAME=VALUE} then it will be written\n" "@var{str} is of the form @code{NAME=VALUE} then it will be\n"
"directly into the environment, replacing any existing environment string\n" "written directly into the environment, replacing any existing\n"
"with\n" "environment string with name matching @code{NAME}. If\n"
"name matching @code{NAME}. If @var{string} does not contain an equal\n" "@var{str} does not contain an equal sign, then any existing\n"
"sign, then any existing string with name matching @var{string} will\n" "string with name matching @var{str} will be removed.\n"
"be removed.\n\n" "\n"
"The return value is unspecified.") "The return value is unspecified.")
#define FUNC_NAME s_scm_putenv #define FUNC_NAME s_scm_putenv
{ {

View file

@ -1350,7 +1350,7 @@ SCM_DEFINE (scm_simple_format, "simple-format", 2, 0, 1,
"@var{message} can contain @code{~A} (was @code{%s}) and\n" "@var{message} can contain @code{~A} (was @code{%s}) and\n"
"@code{~S} (was @code{%S}) escapes. When printed,\n" "@code{~S} (was @code{%S}) escapes. When printed,\n"
"the escapes are replaced with corresponding members of\n" "the escapes are replaced with corresponding members of\n"
"@var{ARGS}:\n" "@var{args}:\n"
"@code{~A} formats using @code{display} and @code{~S} formats\n" "@code{~A} formats using @code{display} and @code{~S} formats\n"
"using @code{write}.\n" "using @code{write}.\n"
"If @var{destination} is @code{#t}, then use the current output\n" "If @var{destination} is @code{#t}, then use the current output\n"

View file

@ -141,7 +141,7 @@ SCM_DEFINE (scm_procedure_minimum_arity, "procedure-minimum-arity", 1, 0, 0,
SCM_DEFINE (scm_procedure_properties, "procedure-properties", 1, 0, 0, SCM_DEFINE (scm_procedure_properties, "procedure-properties", 1, 0, 0,
(SCM proc), (SCM proc),
"Return @var{obj}'s property list.") "Return @var{proc}'s property list.")
#define FUNC_NAME s_scm_procedure_properties #define FUNC_NAME s_scm_procedure_properties
{ {
SCM ret; SCM ret;

View file

@ -98,8 +98,8 @@ promise_print (SCM exp, SCM port, scm_print_state *pstate)
SCM_DEFINE (scm_force, "force", 1, 0, 0, SCM_DEFINE (scm_force, "force", 1, 0, 0,
(SCM promise), (SCM promise),
"If the promise @var{x} has not been computed yet, compute and\n" "If @var{promise} has not been computed yet, compute and\n"
"return @var{x}, otherwise just return the previously computed\n" "return @var{promise}, otherwise just return the previously computed\n"
"value.") "value.")
#define FUNC_NAME s_scm_force #define FUNC_NAME s_scm_force
{ {

View file

@ -169,7 +169,7 @@ SCM_DEFINE (scm_system_star, "system*", 0, 0, 1,
SCM_DEFINE (scm_getenv, "getenv", 1, 0, 0, SCM_DEFINE (scm_getenv, "getenv", 1, 0, 0,
(SCM nam), (SCM nam),
"Looks up the string @var{name} in the current environment. The return\n" "Looks up the string @var{nam} in the current environment. The return\n"
"value is @code{#f} unless a string of the form @code{NAME=VALUE} is\n" "value is @code{#f} unless a string of the form @code{NAME=VALUE} is\n"
"found, in which case the string @code{VALUE} is returned.") "found, in which case the string @code{VALUE} is returned.")
#define FUNC_NAME s_scm_getenv #define FUNC_NAME s_scm_getenv

View file

@ -519,10 +519,10 @@ SCM_DEFINE (scm_getsockopt, "getsockopt", 3, 0, 0,
"@end defvar\n" "@end defvar\n"
"\n" "\n"
"@defvar SO_LINGER\n" "@defvar SO_LINGER\n"
"The @var{value} returned is a pair of integers\n" "The value returned is a pair of integers\n"
"@code{(@var{ENABLE} . @var{TIMEOUT})}. On old systems without\n" "@code{(@var{enable} . @var{timeout})}. On old systems without\n"
"timeout support (ie.@: without @code{struct linger}), only\n" "timeout support (ie.@: without @code{struct linger}), only\n"
"@var{ENABLE} has an effect but the value in Guile is always a\n" "@var{enable} has an effect but the value in Guile is always a\n"
"pair.\n" "pair.\n"
"@end defvar") "@end defvar")
#define FUNC_NAME s_scm_getsockopt #define FUNC_NAME s_scm_getsockopt
@ -1632,7 +1632,7 @@ SCM_DEFINE (scm_sendto, "sendto", 3, 1, 1,
(SCM sock, SCM message, SCM fam_or_sockaddr, SCM address, SCM args_and_flags), (SCM sock, SCM message, SCM fam_or_sockaddr, SCM address, SCM args_and_flags),
"Transmit bytevector @var{message} on socket port\n" "Transmit bytevector @var{message} on socket port\n"
"@var{sock}. The\n" "@var{sock}. The\n"
"destination address is specified using the @var{fam},\n" "destination address is specified using the @var{fam_or_sockaddr},\n"
"@var{address} and\n" "@var{address} and\n"
"@var{args_and_flags} arguments, or just a socket address object " "@var{args_and_flags} arguments, or just a socket address object "
"returned by @code{make-socket-address}, in a similar way to the\n" "returned by @code{make-socket-address}, in a similar way to the\n"

View file

@ -714,8 +714,8 @@ SCM_DEFINE (scm_srfi1_lset_difference_x, "lset-difference!", 2, 0, 1,
SCM_DEFINE (scm_srfi1_assoc, "assoc", 2, 1, 0, SCM_DEFINE (scm_srfi1_assoc, "assoc", 2, 1, 0,
(SCM key, SCM alist, SCM pred), (SCM key, SCM alist, SCM pred),
"Behaves like @code{assq} but uses third argument @var{pred?}\n" "Behaves like @code{assq} but uses third argument @var{pred}\n"
"for key comparison. If @var{pred?} is not supplied,\n" "for key comparison. If @var{pred} is not supplied,\n"
"@code{equal?} is used. (Extended from R5RS.)\n") "@code{equal?} is used. (Extended from R5RS.)\n")
#define FUNC_NAME s_scm_srfi1_assoc #define FUNC_NAME s_scm_srfi1_assoc
{ {
@ -844,9 +844,9 @@ SCM_DEFINE (scm_srfi1_partition_x, "partition!", 2, 0, 0,
SCM_DEFINE (scm_srfi1_remove, "remove", 2, 0, 0, SCM_DEFINE (scm_srfi1_remove, "remove", 2, 0, 0,
(SCM pred, SCM list), (SCM pred, SCM list),
"Return a list containing all elements from @var{lst} which do\n" "Return a list containing all elements from @var{list} which do\n"
"not satisfy the predicate @var{pred}. The elements in the\n" "not satisfy the predicate @var{pred}. The elements in the\n"
"result list have the same order as in @var{lst}. The order in\n" "result list have the same order as in @var{list}. The order in\n"
"which @var{pred} is applied to the list elements is not\n" "which @var{pred} is applied to the list elements is not\n"
"specified.") "specified.")
#define FUNC_NAME s_scm_srfi1_remove #define FUNC_NAME s_scm_srfi1_remove

View file

@ -375,7 +375,7 @@ SCM_SYMBOL (scm_sym_prefix, "prefix");
SCM_DEFINE (scm_string_join, "string-join", 1, 2, 0, SCM_DEFINE (scm_string_join, "string-join", 1, 2, 0,
(SCM ls, SCM delimiter, SCM grammar), (SCM ls, SCM delimiter, SCM grammar),
"Append the string in the string list @var{ls}, using the string\n" "Append the string in the string list @var{ls}, using the string\n"
"@var{delim} as a delimiter between the elements of @var{ls}.\n" "@var{delimiter} as a delimiter between the elements of @var{ls}.\n"
"@var{grammar} is a symbol which specifies how the delimiter is\n" "@var{grammar} is a symbol which specifies how the delimiter is\n"
"placed between the strings, and defaults to the symbol\n" "placed between the strings, and defaults to the symbol\n"
"@code{infix}.\n" "@code{infix}.\n"
@ -1356,7 +1356,7 @@ SCM_DEFINE (scm_string_ci_ge, "string-ci>=", 2, 4, 0,
SCM_DEFINE (scm_substring_hash, "string-hash", 1, 3, 0, SCM_DEFINE (scm_substring_hash, "string-hash", 1, 3, 0,
(SCM s, SCM bound, SCM start, SCM end), (SCM s, SCM bound, SCM start, SCM end),
"Compute a hash value for @var{S}. the optional argument " "Compute a hash value for @var{s}. the optional argument "
"@var{bound} is a non-negative exact " "@var{bound} is a non-negative exact "
"integer specifying the range of the hash function. " "integer specifying the range of the hash function. "
"A positive value restricts the return value to the " "A positive value restricts the return value to the "
@ -1373,7 +1373,7 @@ SCM_DEFINE (scm_substring_hash, "string-hash", 1, 3, 0,
SCM_DEFINE (scm_substring_hash_ci, "string-hash-ci", 1, 3, 0, SCM_DEFINE (scm_substring_hash_ci, "string-hash-ci", 1, 3, 0,
(SCM s, SCM bound, SCM start, SCM end), (SCM s, SCM bound, SCM start, SCM end),
"Compute a hash value for @var{S}. the optional argument " "Compute a hash value for @var{s}. the optional argument "
"@var{bound} is a non-negative exact " "@var{bound} is a non-negative exact "
"integer specifying the range of the hash function. " "integer specifying the range of the hash function. "
"A positive value restricts the return value to the " "A positive value restricts the return value to the "

View file

@ -698,8 +698,8 @@ SCM_DEFINE (scm_char_set_eq, "char-set=", 0, 0, 1,
SCM_DEFINE (scm_char_set_leq, "char-set<=", 0, 0, 1, SCM_DEFINE (scm_char_set_leq, "char-set<=", 0, 0, 1,
(SCM char_sets), (SCM char_sets),
"Return @code{#t} if every character set @var{cs}i is a subset\n" "Return @code{#t} if every character set @var{char_set}i is a subset\n"
"of character set @var{cs}i+1.") "of character set @var{char_set}i+1.")
#define FUNC_NAME s_scm_char_set_leq #define FUNC_NAME s_scm_char_set_leq
{ {
int argnum = 1; int argnum = 1;
@ -732,7 +732,7 @@ SCM_DEFINE (scm_char_set_hash, "char-set-hash", 1, 1, 0,
(SCM cs, SCM bound), (SCM cs, SCM bound),
"Compute a hash value for the character set @var{cs}. If\n" "Compute a hash value for the character set @var{cs}. If\n"
"@var{bound} is given and non-zero, it restricts the\n" "@var{bound} is given and non-zero, it restricts the\n"
"returned value to the range 0 @dots{} @var{bound - 1}.") "returned value to the range 0 @dots{} @var{bound} - 1.")
#define FUNC_NAME s_scm_char_set_hash #define FUNC_NAME s_scm_char_set_hash
{ {
const unsigned long default_bnd = 871; const unsigned long default_bnd = 871;

View file

@ -225,7 +225,7 @@ SCM_DEFINE (scm_make_stack, "make-stack", 1, 0, 1,
"@code{(@var{inner_cut_1} @var{outer_cut_1} @var{inner_cut_2}\n" "@code{(@var{inner_cut_1} @var{outer_cut_1} @var{inner_cut_2}\n"
"@var{outer_cut_2} @dots{})}.\n" "@var{outer_cut_2} @dots{})}.\n"
"\n" "\n"
"Each @var{inner_cut_N} can be @code{#t}, an integer, a prompt\n" "Each @var{inner_cut_i} can be @code{#t}, an integer, a prompt\n"
"tag, or a procedure. @code{#t} means to cut away all frames up\n" "tag, or a procedure. @code{#t} means to cut away all frames up\n"
"to but excluding the first user module frame. An integer means\n" "to but excluding the first user module frame. An integer means\n"
"to cut away exactly that number of frames. A prompt tag means\n" "to cut away exactly that number of frames. A prompt tag means\n"
@ -234,14 +234,14 @@ SCM_DEFINE (scm_make_stack, "make-stack", 1, 0, 1,
"excluding the application frame whose procedure matches the\n" "excluding the application frame whose procedure matches the\n"
"specified one.\n" "specified one.\n"
"\n" "\n"
"Each @var{outer_cut_N} can be an integer, a prompt tag, or a\n" "Each @var{outer_cut_i} can be an integer, a prompt tag, or a\n"
"procedure. An integer means to cut away that number of frames.\n" "procedure. An integer means to cut away that number of frames.\n"
"A prompt tag means to cut away all frames that are outside a\n" "A prompt tag means to cut away all frames that are outside a\n"
"prompt with the given tag. A procedure means to cut away\n" "prompt with the given tag. A procedure means to cut away\n"
"frames down to but excluding the application frame whose\n" "frames down to but excluding the application frame whose\n"
"procedure matches the specified one.\n" "procedure matches the specified one.\n"
"\n" "\n"
"If the @var{outer_cut_N} of the last pair is missing, it is\n" "If the @var{outer_cut_i} of the last pair is missing, it is\n"
"taken as 0.") "taken as 0.")
#define FUNC_NAME s_scm_make_stack #define FUNC_NAME s_scm_make_stack
{ {

View file

@ -551,13 +551,14 @@ bdtime2c (SCM sbd_time, struct tm *lt, int pos, const char *subr)
SCM_DEFINE (scm_mktime, "mktime", 1, 1, 0, SCM_DEFINE (scm_mktime, "mktime", 1, 1, 0,
(SCM sbd_time, SCM zone), (SCM sbd_time, SCM zone),
"@var{bd-time} is an object representing broken down time and @code{zone}\n" "@var{sbd_time} is an object representing broken down time and\n"
"is an optional time zone specifier (otherwise the TZ environment variable\n" "@code{zone} is an optional time zone specifier (otherwise the\n"
"or the system default is used).\n\n" "TZ environment variable or the system default is used).\n"
"Returns a pair: the car is a corresponding\n" "\n"
"integer time value like that returned\n" "Returns a pair: the car is a corresponding integer time value\n"
"by @code{current-time}; the cdr is a broken down time object, similar to\n" "like that returned by @code{current-time}; the cdr is a broken\n"
"as @var{bd-time} but with normalized values.") "down time object, similar to as @var{sbd_time} but with\n"
"normalized values.")
#define FUNC_NAME s_scm_mktime #define FUNC_NAME s_scm_mktime
{ {
timet itime; timet itime;
@ -763,7 +764,7 @@ SCM_DEFINE (scm_strptime, "strptime", 2, 0, 0,
(SCM format, SCM string), (SCM format, SCM string),
"Performs the reverse action to @code{strftime}, parsing\n" "Performs the reverse action to @code{strftime}, parsing\n"
"@var{string} according to the specification supplied in\n" "@var{string} according to the specification supplied in\n"
"@var{template}. The interpretation of month and day names is\n" "@var{format}. The interpretation of month and day names is\n"
"dependent on the current locale. The value returned is a pair.\n" "dependent on the current locale. The value returned is a pair.\n"
"The car has an object with time components\n" "The car has an object with time components\n"
"in the form returned by @code{localtime} or @code{gmtime},\n" "in the form returned by @code{localtime} or @code{gmtime},\n"

View file

@ -1157,7 +1157,7 @@ SCM_DEFINE (scm_make_string, "make-string", 1, 1, 0,
"Return a newly allocated string of\n" "Return a newly allocated string of\n"
"length @var{k}. If @var{chr} is given, then all elements of\n" "length @var{k}. If @var{chr} is given, then all elements of\n"
"the string are initialized to @var{chr}, otherwise the contents\n" "the string are initialized to @var{chr}, otherwise the contents\n"
"of the @var{string} are all set to @var{#\nul}.") "of the string are all set to @code{#\nul}.")
#define FUNC_NAME s_scm_make_string #define FUNC_NAME s_scm_make_string
{ {
return scm_c_make_string (scm_to_size_t (k), chr); return scm_c_make_string (scm_to_size_t (k), chr);

View file

@ -527,9 +527,9 @@ scm_c_make_struct (SCM vtable, size_t n_tail, size_t n_init, scm_t_bits init, ..
SCM_DEFINE (scm_make_struct, "make-struct", 2, 0, 1, SCM_DEFINE (scm_make_struct, "make-struct", 2, 0, 1,
(SCM vtable, SCM tail_array_size, SCM init), (SCM vtable, SCM tail_array_size, SCM init),
"Create a new structure.\n\n" "Create a new structure.\n\n"
"@var{type} must be a vtable structure (@pxref{Vtables}).\n\n" "@var{vtable} must be a vtable structure (@pxref{Vtables}).\n\n"
"@var{tail-elts} must be a non-negative integer. If the layout\n" "@var{tail_array_size} must be a non-negative integer. If the layout\n"
"specification indicated by @var{type} includes a tail-array,\n" "specification indicated by @var{vtable} includes a tail-array,\n"
"this is the number of elements allocated to that array.\n\n" "this is the number of elements allocated to that array.\n\n"
"The @var{init1}, @dots{} are optional arguments describing how\n" "The @var{init1}, @dots{} are optional arguments describing how\n"
"successive fields of the structure should be initialized. Only fields\n" "successive fields of the structure should be initialized. Only fields\n"
@ -576,7 +576,7 @@ SCM_DEFINE (scm_make_vtable_vtable, "make-vtable-vtable", 2, 0, 1,
"@var{user-fields} is a string describing user defined fields of the\n" "@var{user-fields} is a string describing user defined fields of the\n"
"vtable beginning at index @code{vtable-offset-user}\n" "vtable beginning at index @code{vtable-offset-user}\n"
"(see @code{make-struct-layout}).\n\n" "(see @code{make-struct-layout}).\n\n"
"@var{tail-size} specifies the size of the tail-array (if any) of\n" "@var{tail_array_size} specifies the size of the tail-array (if any) of\n"
"this vtable.\n\n" "this vtable.\n\n"
"@var{init1}, @dots{} are the optional initializers for the fields of\n" "@var{init1}, @dots{} are the optional initializers for the fields of\n"
"the vtable.\n\n" "the vtable.\n\n"
@ -738,10 +738,15 @@ scm_i_struct_equalp (SCM s1, SCM s2)
SCM_DEFINE (scm_struct_ref, "struct-ref", 2, 0, 0, SCM_DEFINE (scm_struct_ref, "struct-ref", 2, 0, 0,
(SCM handle, SCM pos), (SCM handle, SCM pos),
"Access the @var{n}th field of @var{struct}.\n\n" "Access the @var{pos}th field of struct associated with\n"
"If the field is of type 'p', then it can be set to an arbitrary value.\n\n" "@var{handle}.\n"
"If the field is of type 'u', then it can only be set to a non-negative\n" "\n"
"integer value small enough to fit in one machine word.") "If the field is of type 'p', then it can be set to an arbitrary\n"
"value.\n"
"\n"
"If the field is of type 'u', then it can only be set to a\n"
"non-negative integer value small enough to fit in one machine\n"
"word.")
#define FUNC_NAME s_scm_struct_ref #define FUNC_NAME s_scm_struct_ref
{ {
SCM vtable, answer = SCM_UNDEFINED; SCM vtable, answer = SCM_UNDEFINED;
@ -910,7 +915,8 @@ SCM_DEFINE (scm_struct_set_x, "struct-set!", 3, 0, 0,
SCM_DEFINE (scm_struct_vtable, "struct-vtable", 1, 0, 0, SCM_DEFINE (scm_struct_vtable, "struct-vtable", 1, 0, 0,
(SCM handle), (SCM handle),
"Return the vtable structure that describes the type of @var{struct}.") "Return the vtable structure that describes the type of struct\n"
"associated with @var{handle}.")
#define FUNC_NAME s_scm_struct_vtable #define FUNC_NAME s_scm_struct_vtable
{ {
SCM_VALIDATE_STRUCT (1, handle); SCM_VALIDATE_STRUCT (1, handle);

View file

@ -384,7 +384,7 @@ SCM_DEFINE (scm_symbol_hash, "symbol-hash", 1, 0, 0,
SCM_DEFINE (scm_symbol_fref, "symbol-fref", 1, 0, 0, SCM_DEFINE (scm_symbol_fref, "symbol-fref", 1, 0, 0,
(SCM s), (SCM s),
"Return the contents of @var{symbol}'s @dfn{function slot}.") "Return the contents of the symbol @var{s}'s @dfn{function slot}.")
#define FUNC_NAME s_scm_symbol_fref #define FUNC_NAME s_scm_symbol_fref
{ {
SCM_VALIDATE_SYMBOL (1, s); SCM_VALIDATE_SYMBOL (1, s);
@ -395,7 +395,8 @@ SCM_DEFINE (scm_symbol_fref, "symbol-fref", 1, 0, 0,
SCM_DEFINE (scm_symbol_pref, "symbol-pref", 1, 0, 0, SCM_DEFINE (scm_symbol_pref, "symbol-pref", 1, 0, 0,
(SCM s), (SCM s),
"Return the @dfn{property list} currently associated with @var{symbol}.") "Return the @dfn{property list} currently associated with the\n"
"symbol @var{s}.")
#define FUNC_NAME s_scm_symbol_pref #define FUNC_NAME s_scm_symbol_pref
{ {
SCM_VALIDATE_SYMBOL (1, s); SCM_VALIDATE_SYMBOL (1, s);
@ -406,7 +407,7 @@ SCM_DEFINE (scm_symbol_pref, "symbol-pref", 1, 0, 0,
SCM_DEFINE (scm_symbol_fset_x, "symbol-fset!", 2, 0, 0, SCM_DEFINE (scm_symbol_fset_x, "symbol-fset!", 2, 0, 0,
(SCM s, SCM val), (SCM s, SCM val),
"Change the binding of @var{symbol}'s function slot.") "Change the binding of the symbol @var{s}'s function slot.")
#define FUNC_NAME s_scm_symbol_fset_x #define FUNC_NAME s_scm_symbol_fset_x
{ {
SCM_VALIDATE_SYMBOL (1, s); SCM_VALIDATE_SYMBOL (1, s);
@ -418,7 +419,7 @@ SCM_DEFINE (scm_symbol_fset_x, "symbol-fset!", 2, 0, 0,
SCM_DEFINE (scm_symbol_pset_x, "symbol-pset!", 2, 0, 0, SCM_DEFINE (scm_symbol_pset_x, "symbol-pset!", 2, 0, 0,
(SCM s, SCM val), (SCM s, SCM val),
"Change the binding of @var{symbol}'s property slot.") "Change the binding of the symbol @var{s}'s property slot.")
#define FUNC_NAME s_scm_symbol_pset_x #define FUNC_NAME s_scm_symbol_pset_x
{ {
SCM_VALIDATE_SYMBOL (1, s); SCM_VALIDATE_SYMBOL (1, s);

View file

@ -1475,11 +1475,12 @@ SCM scm_lock_mutex (SCM mx)
SCM_DEFINE (scm_lock_mutex_timed, "lock-mutex", 1, 2, 0, SCM_DEFINE (scm_lock_mutex_timed, "lock-mutex", 1, 2, 0,
(SCM m, SCM timeout, SCM owner), (SCM m, SCM timeout, SCM owner),
"Lock @var{mutex}. If the mutex is already locked, the calling thread " "Lock mutex @var{m}. If the mutex is already locked, the calling\n"
"blocks until the mutex becomes available. The function returns when " "thread blocks until the mutex becomes available. The function\n"
"the calling thread owns the lock on @var{mutex}. Locking a mutex that " "returns when the calling thread owns the lock on @var{m}.\n"
"a thread already owns will succeed right away and will not block the " "Locking a mutex that a thread already owns will succeed right\n"
"thread. That is, Guile's mutexes are @emph{recursive}. ") "away and will not block the thread. That is, Guile's mutexes\n"
"are @emph{recursive}.")
#define FUNC_NAME s_scm_lock_mutex_timed #define FUNC_NAME s_scm_lock_mutex_timed
{ {
SCM exception; SCM exception;
@ -1769,9 +1770,9 @@ SCM_DEFINE (scm_make_condition_variable, "make-condition-variable", 0, 0, 0,
SCM_DEFINE (scm_timed_wait_condition_variable, "wait-condition-variable", 2, 1, 0, SCM_DEFINE (scm_timed_wait_condition_variable, "wait-condition-variable", 2, 1, 0,
(SCM cv, SCM mx, SCM t), (SCM cv, SCM mx, SCM t),
"Wait until @var{cond-var} has been signalled. While waiting, " "Wait until condition variable @var{cv} has been signalled. While waiting, "
"@var{mutex} is atomically unlocked (as with @code{unlock-mutex}) and " "mutex @var{mx} is atomically unlocked (as with @code{unlock-mutex}) and "
"is locked again when this function returns. When @var{time} is given, " "is locked again when this function returns. When @var{t} is given, "
"it specifies a point in time where the waiting should be aborted. It " "it specifies a point in time where the waiting should be aborted. It "
"can be either a integer as returned by @code{current-time} or a pair " "can be either a integer as returned by @code{current-time} or a pair "
"as returned by @code{gettimeofday}. When the waiting is aborted the " "as returned by @code{gettimeofday}. When the waiting is aborted the "