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.0-190-g3936c


From: Andy Wingo
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.0-190-g3936ceb
Date: Thu, 14 Apr 2011 14:53:48 +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=3936cebc77bfbde57bb3fe904b26943e54a9d618

The branch, stable-2.0 has been updated
       via  3936cebc77bfbde57bb3fe904b26943e54a9d618 (commit)
      from  90779ad9a1d8b2533ad8495753677aebf5626571 (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 3936cebc77bfbde57bb3fe904b26943e54a9d618
Author: Andy Wingo <address@hidden>
Date:   Thu Apr 14 16:53:18 2011 +0200

    fix analyze.scm literal string warnings
    
    * module/language/tree-il/analyze.scm (const-fmt): Return any literal
      value, not just strings.  The string case is checked later.

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

Summary of changes:
 module/language/tree-il/analyze.scm |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/module/language/tree-il/analyze.scm 
b/module/language/tree-il/analyze.scm
index 61357f8..23eff2c 100644
--- a/module/language/tree-il/analyze.scm
+++ b/module/language/tree-il/analyze.scm
@@ -1347,10 +1347,9 @@ accurate information is missing from a given `tree-il' 
element."
 (define (const-fmt x)
   (record-case x
     ((<const> exp)
-     ;; String literals.
-     (and (string? exp) exp))
+     exp)
     ((<application> proc args)
-     ;; Gettexted string literals, like `(_ "foo")'.
+     ;; Gettexted literals, like `(_ "foo")'.
      (and (record-case proc
             ((<toplevel-ref> name) (eq? name '_))
             ((<module-ref> name) (eq? name '_))
@@ -1358,8 +1357,7 @@ accurate information is missing from a given `tree-il' 
element."
           (pmatch args
             ((,fmt)
              (record-case fmt
-               ((<const> exp)
-                (and (string? exp) exp))
+               ((<const> exp) exp)
                (else #f)))
             (else #f))))
     (else #f)))


hooks/post-receive
-- 
GNU Guile



reply via email to

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