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.3-135-g86c63


From: Mark H Weaver
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.3-135-g86c63a8
Date: Mon, 09 Jan 2012 23:33:26 +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=86c63a8251496f1272902185f4b9a0ddcc023815

The branch, stable-2.0 has been updated
       via  86c63a8251496f1272902185f4b9a0ddcc023815 (commit)
      from  0e947e1d14597651c5762a4209225c472bdaef45 (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 86c63a8251496f1272902185f4b9a0ddcc023815
Author: Mark H Weaver <address@hidden>
Date:   Mon Jan 9 18:24:22 2012 -0500

    Remove null string optimization from scm_from_stringn
    
    * libguile/strings.c (scm_from_stringn): Always return a freshly
      allocated string from scm_from_stringn, even when asked to construct
      the null string, in accordance with the R5RS.  Previously, we
      optimized the null string case by returning a reference to a global
      null string object (scm_nullstr).

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

Summary of changes:
 libguile/strings.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/libguile/strings.c b/libguile/strings.c
index 6e1f9c8..73c0a5c 100644
--- a/libguile/strings.c
+++ b/libguile/strings.c
@@ -1472,8 +1472,6 @@ scm_from_stringn (const char *str, size_t len, const char 
*encoding,
     scm_misc_error ("scm_from_stringn", "NULL string pointer", SCM_EOL);
   if (len == (size_t) -1)
     len = strlen (str);
-  if (len == 0)
-    return scm_nullstr;
 
   if (encoding == NULL)
     {


hooks/post-receive
-- 
GNU Guile



reply via email to

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