From 237788d2a2c99bfc064b582099a4708fa58c2c8b Mon Sep 17 00:00:00 2001 From: Neil Jerram Date: Mon, 4 Sep 2006 06:29:13 +0000 Subject: [PATCH] * api-control.texi (Dynamic Wind): Doc for scm_dynwind_free. * api-modules.texi (The Guile module system), api-data.texi (Integers, Numerical Tower), api-compound.texi (Uniform Numeric Vectors): Fix typos. (Patch sent in by Marco Maggi.) --- doc/ref/ChangeLog | 8 ++++++++ doc/ref/api-compound.texi | 2 +- doc/ref/api-control.texi | 7 +++++++ doc/ref/api-data.texi | 6 +++--- doc/ref/api-modules.texi | 2 +- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/doc/ref/ChangeLog b/doc/ref/ChangeLog index 629fdaa82..191ff9711 100644 --- a/doc/ref/ChangeLog +++ b/doc/ref/ChangeLog @@ -1,3 +1,11 @@ +2006-09-04 Neil Jerram + + * api-control.texi (Dynamic Wind): Doc for scm_dynwind_free. + + * api-modules.texi (The Guile module system), api-data.texi + (Integers, Numerical Tower), api-compound.texi (Uniform Numeric + Vectors): Fix typos. (Patch sent in by Marco Maggi.) + 2006-08-29 Kevin Ryde * api-control.texi (Dynamic Wind): Reformat example a bit to avoid diff --git a/doc/ref/api-compound.texi b/doc/ref/api-compound.texi index 3e1699aa0..44410d158 100644 --- a/doc/ref/api-compound.texi +++ b/doc/ref/api-compound.texi @@ -1057,7 +1057,7 @@ being a @code{double} The external representation (ie.@: read syntax) for these vectors is similar to normal Scheme vectors, but with an additional tag from the -tabel above indiciating the vector's type. For example, +table above indiciating the vector's type. For example, @lisp #u16(1 2 3) diff --git a/doc/ref/api-control.texi b/doc/ref/api-control.texi index d5f68208e..11a276a13 100644 --- a/doc/ref/api-control.texi +++ b/doc/ref/api-control.texi @@ -1357,6 +1357,13 @@ The function @code{scm_dynwind_rewind_handler_with_scm} takes care that @var{data} is protected from garbage collection. @end deftypefn +@deftypefn {C Function} void scm_dynwind_free (void *mem) +Arrange for @var{mem} to be freed automatically whenever the current +context is exited, whether normally or non-locally. +@code{scm_dynwind_free (mem)} is an equivalent shorthand for +@code{scm_dynwind_unwind_handler (free, mem, SCM_F_WIND_EXPLICITLY)}. +@end deftypefn + @node Handling Errors @subsection How to Handle Errors diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index 885f42294..c0f5d08ef 100755 --- a/doc/ref/api-data.texi +++ b/doc/ref/api-data.texi @@ -227,8 +227,8 @@ rational is also real, and every real number is also a complex number In addition to the classification into integers, rationals, reals and complex numbers, Scheme also distinguishes between whether a number is represented exactly or not. For example, the result of -@m{2\sin(\pi/4),sin(pi/4)} is exactly @m{\sqrt{2},2^(1/2)} but Guile -can neither represent @m{\pi/4,pi/4} nor @m{\sqrt{2},2^(1/2)} exactly. +@m{2\sin(\pi/4),2*sin(pi/4)} is exactly @m{\sqrt{2},2^(1/2)}, but Guile +can represent neither @m{\pi/4,pi/4} nor @m{\sqrt{2},2^(1/2)} exactly. Instead, it stores an inexact approximation, using the C type @code{double}. @@ -477,7 +477,7 @@ the occupied space must be freed with @code{mpz_clear}. @xref{Initializing Integers,,, gmp, GNU MP Manual}, for details. @end deftypefn -@deftypefn {C Function} SCM scm_from_mpz_t (mpz_t val) +@deftypefn {C Function} SCM scm_from_mpz (mpz_t val) Return the @code{SCM} value that represents @var{val}. @end deftypefn diff --git a/doc/ref/api-modules.texi b/doc/ref/api-modules.texi index 54e5f4b8f..c12e31dca 100644 --- a/doc/ref/api-modules.texi +++ b/doc/ref/api-modules.texi @@ -133,7 +133,7 @@ sets of bindings. In 1996 Tom Lord implemented a full-featured module system for Guile which allows loading Scheme source files into a private name space. This system has -been in available since at least Guile version 1.1. +been available since at least Guile version 1.1. For Guile version 1.5.0 and later, the system has been improved to have better integration from C code, more fine-grained user control over interfaces, and