guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.7-313-gbc390


From: Ludovic Courtès
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.7-313-gbc39010
Date: Sun, 07 Apr 2013 09:54:37 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=bc3901092dc777d832862862e606ae2ddeb6f2f8

The branch, stable-2.0 has been updated
       via  bc3901092dc777d832862862e606ae2ddeb6f2f8 (commit)
       via  7d39b48875475b2d206789cb9b6486b79c7be55d (commit)
       via  48ffc52cc96fc0665183d9a9e3f68e7e031487f4 (commit)
      from  a71e79c3e5a5c366bb9ec218ee537441b8e5949a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bc3901092dc777d832862862e606ae2ddeb6f2f8
Author: Ludovic Courtès <address@hidden>
Date:   Sun Apr 7 11:51:26 2013 +0200

    doc: Link exceptions and escape continuations.
    
    * doc/ref/api-control.texi (Prompt Primitives): Mention exceptions.
      (Exception Terminology): Link to `call/ec'.

commit 7d39b48875475b2d206789cb9b6486b79c7be55d
Author: Ludovic Courtès <address@hidden>
Date:   Sun Apr 7 11:49:52 2013 +0200

    doc: Warn against misuses of `file-name-separator-string'.
    
    * doc/ref/posix.texi (File System): Warn against misuses of
      `file-name-separator-string'.

commit 48ffc52cc96fc0665183d9a9e3f68e7e031487f4
Author: Daniel Llorens <address@hidden>
Date:   Sun Apr 7 00:04:35 2013 +0200

    Don't use scm_generalized_vector_get_handle() in array-map.c
    
    * libguile/array-map.c: (rafill, racp, ramap, rafe): use
      scm_array_get_handle() instead of scm_generalized_get_vector_handle().
    
    Signed-off-by: Ludovic Courtès <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 doc/ref/api-control.texi |    9 ++++++++-
 doc/ref/posix.texi       |    7 ++++++-
 libguile/array-map.c     |   12 ++++++------
 3 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/doc/ref/api-control.texi b/doc/ref/api-control.texi
index 278a03d..56ffba2 100644
--- a/doc/ref/api-control.texi
+++ b/doc/ref/api-control.texi
@@ -582,7 +582,9 @@ One example where this optimization matters is @dfn{escape
 continuations}.  Escape continuations are delimited continuations whose
 only use is to make a non-local exit---i.e., to escape from the current
 continuation.  Such continuations are invoked only once, and for this
-reason they are sometimes called @dfn{one-shot continuations}.
+reason they are sometimes called @dfn{one-shot continuations}.  A common
+use of escape continuations is when throwing an exception
+(@pxref{Exceptions}).
 
 The constructs below are syntactic sugar atop prompts to simplify the
 use of escape continuations.
@@ -1031,6 +1033,11 @@ to avoid the risk of confusion with POSIX signals.
 This manual prefers to speak of throwing and catching exceptions, since
 this terminology matches the corresponding Guile primitives.
 
+The exception mechanism described in this section has connections with
address@hidden continuations} (@pxref{Prompts}).  In particular,
+throwing an exception is akin to invoking an @dfn{escape continuation}
+(@pxref{Prompt Primitives, @code{call/ec}}).
+
 
 @node Catch
 @subsubsection Catching Exceptions
diff --git a/doc/ref/posix.texi b/doc/ref/posix.texi
index 880ac41..45f320f 100644
--- a/doc/ref/posix.texi
+++ b/doc/ref/posix.texi
@@ -1038,7 +1038,12 @@ platform.
 @end deffn
 
 @defvr {Scheme Variable} file-name-separator-string
-The standard file name separator.
+The preferred file name separator.
+
+Note that on MinGW builds for Windows, both @code{/} and @code{\} are
+valid separators.  Thus, programs should not assume that
address@hidden is the @emph{only} file name
+separator---e.g., when extracting the components of a file name.
 @end defvr
 
 
diff --git a/libguile/array-map.c b/libguile/array-map.c
index 2779458..1c443ac 100644
--- a/libguile/array-map.c
+++ b/libguile/array-map.c
@@ -325,7 +325,7 @@ rafill (SCM dst, SCM fill)
   scm_t_array_handle h;
   size_t i;
   ssize_t inc;
-  scm_generalized_vector_get_handle (SCM_I_ARRAY_V (dst), &h);
+  scm_array_get_handle (SCM_I_ARRAY_V (dst), &h);
   i = h.base + h.dims[0].lbnd + SCM_I_ARRAY_BASE (dst)*h.dims[0].inc;
   inc = SCM_I_ARRAY_DIMS (dst)->inc * h.dims[0].inc;
 
@@ -357,8 +357,8 @@ racp (SCM src, SCM dst)
   ssize_t inc_s, inc_d;
 
   dst = SCM_CAR (dst);
-  scm_generalized_vector_get_handle (SCM_I_ARRAY_V (src), &h_s);
-  scm_generalized_vector_get_handle (SCM_I_ARRAY_V (dst), &h_d);
+  scm_array_get_handle (SCM_I_ARRAY_V (src), &h_s);
+  scm_array_get_handle (SCM_I_ARRAY_V (dst), &h_d);
 
   i_s = h_s.base + h_s.dims[0].lbnd + SCM_I_ARRAY_BASE (src) * h_s.dims[0].inc;
   i_d = h_d.base + h_d.dims[0].lbnd + SCM_I_ARRAY_BASE (dst) * h_d.dims[0].inc;
@@ -665,7 +665,7 @@ ramap (SCM ra0, SCM proc, SCM ras)
   scm_t_array_handle h0;
   size_t i0, i0end;
   ssize_t inc0;
-  scm_generalized_vector_get_handle (SCM_I_ARRAY_V (ra0), &h0);
+  scm_array_get_handle (SCM_I_ARRAY_V (ra0), &h0);
   i0 = h0.base + h0.dims[0].lbnd + SCM_I_ARRAY_BASE (ra0)*h0.dims[0].inc;
   inc0 = SCM_I_ARRAY_DIMS (ra0)->inc * h0.dims[0].inc;
   i0end = i0 + n*inc0;
@@ -678,7 +678,7 @@ ramap (SCM ra0, SCM proc, SCM ras)
       scm_t_array_handle h1;
       size_t i1;
       ssize_t inc1;
-      scm_generalized_vector_get_handle (SCM_I_ARRAY_V (ra1), &h1);
+      scm_array_get_handle (SCM_I_ARRAY_V (ra1), &h1);
       i1 = h1.base + h1.dims[0].lbnd + SCM_I_ARRAY_BASE (ra1)*h1.dims[0].inc;
       inc1 = SCM_I_ARRAY_DIMS (ra1)->inc * h1.dims[0].inc;
       ras = SCM_CDR (ras);
@@ -738,7 +738,7 @@ rafe (SCM ra0, SCM proc, SCM ras)
   scm_t_array_handle h0;
   size_t i0, i0end;
   ssize_t inc0;
-  scm_generalized_vector_get_handle (SCM_I_ARRAY_V (ra0), &h0);
+  scm_array_get_handle (SCM_I_ARRAY_V (ra0), &h0);
   i0 = h0.base + h0.dims[0].lbnd + SCM_I_ARRAY_BASE (ra0)*h0.dims[0].inc;
   inc0 = SCM_I_ARRAY_DIMS (ra0)->inc * h0.dims[0].inc;
   i0end = i0 + n*inc0;


hooks/post-receive
-- 
GNU Guile



reply via email to

[Prev in Thread] Current Thread [Next in Thread]