autoconf-commit
[Top][All Lists]
Advanced

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

[SCM] GNU Autoconf source repository branch, master, updated. v2.63-200-


From: Eric Blake
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.63-200-g7ad7019
Date: Mon, 17 Nov 2008 13:21:00 +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 Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=7ad7019cf702c136869beef91b65bceae7c7dbb3

The branch, master has been updated
       via  7ad7019cf702c136869beef91b65bceae7c7dbb3 (commit)
      from  541df95c2eb3e31f3ee0177b02f40467e65ba2aa (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 7ad7019cf702c136869beef91b65bceae7c7dbb3
Author: Eric Blake <address@hidden>
Date:   Mon Nov 17 06:20:27 2008 -0700

    Detect empty list in AS_FOR.
    
    * lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
    properly.
    * tests/m4sh.at (AS@&address@hidden): Enhance test to catch it.
    Reported by Paolo Bonzini.
    
    Signed-off-by: Eric Blake <address@hidden>

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

Summary of changes:
 ChangeLog           |    8 ++++++++
 lib/m4sugar/m4sh.m4 |    2 +-
 tests/m4sh.at       |    6 +++---
 3 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bf0e871..41f97d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-11-17  Eric Blake  <address@hidden>
+
+       Detect empty list in AS_FOR.
+       * lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
+       properly.
+       * tests/m4sh.at (AS@&address@hidden): Enhance test to catch it.
+       Reported by Paolo Bonzini.
+
 2008-11-16  Ralf Wildenhues  <address@hidden>
 
        Use a different workaround for an automake quirk.
diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4
index 2c592c6..4da8f37 100644
--- a/lib/m4sugar/m4sh.m4
+++ b/lib/m4sugar/m4sh.m4
@@ -552,7 +552,7 @@ m4_define([AS_EXIT],
 # substitution, shell quoting, globs, or quadrigraphs).  Inline the
 # m4_defn for speed.
 m4_defun([AS_FOR],
-[m4_pushdef([$1], m4_if(m4_translit([$3], ]dnl
+[m4_pushdef([$1], m4_if([$3], [], [[$$2]], m4_translit([$3], ]dnl
 m4_dquote(_m4_defn([m4_cr_symbols2]))[[%+=:,./-]), [], [[$3]], [[$$2]]))]dnl
 [for $2[]m4_ifval([$3], [ in $3])
 do
diff --git a/tests/m4sh.at b/tests/m4sh.at
index 383d821..96e0452 100644
--- a/tests/m4sh.at
+++ b/tests/m4sh.at
@@ -934,7 +934,7 @@ AS_FOR([m4var], [shvar], [\'],
 # Syntax checks: cope with empty arguments.
 set f g
 AS_FOR([], [shvar], [],
-[echo "$shvar"])
+[echo "m4_defn([]) $shvar"])
 rm -f file
 AS_FOR([], [shvar], [`touch file`])
 test -f file || exit 1
@@ -963,8 +963,8 @@ e e
 d e d e
 $list $list
 ' '
-f
-g
+f f
+g g
 h
 j
 ]])


hooks/post-receive
--
GNU Autoconf source repository




reply via email to

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