gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-527


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-527-g5dd46ec
Date: Wed, 26 Nov 2014 06:30: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 "gawk".

The branch, gawk-4.1-stable has been updated
       via  5dd46ec03bb3dc945d2f084726aaba79a83e6340 (commit)
      from  7efd4d794abbbd1b6abc2110cd43fd7896e0cb47 (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 -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=5dd46ec03bb3dc945d2f084726aaba79a83e6340

commit 5dd46ec03bb3dc945d2f084726aaba79a83e6340
Author: Arnold D. Robbins <address@hidden>
Date:   Wed Nov 26 08:29:52 2014 +0200

    Fixes for new gensub warnings.

diff --git a/ChangeLog b/ChangeLog
index 175c929..5dc7904 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-26         Arnold D. Robbins     <address@hidden>
+
+       * builtin.c (do_sub): Improve wording of gensub warnings.
+
 2014-11-25         Arnold D. Robbins     <address@hidden>
 
        * builtin.c (do_sub): For gensub, add more warnings for invalid
diff --git a/builtin.c b/builtin.c
index 3aeee74..53210c4 100644
--- a/builtin.c
+++ b/builtin.c
@@ -2696,7 +2696,7 @@ do_sub(int nargs, unsigned int flags)
                                if ((t1->flags & NUMCUR) != 0)
                                        goto set_how_many;
 
-                               warning(_("gensub: third argument of `%.*s' 
treated as 1"),
+                               warning(_("gensub: third argument `%.*s' 
treated as 1"),
                                                (int) t1->stlen, t1->stptr);
                                how_many = 1;
                        }
@@ -2711,7 +2711,7 @@ set_how_many:
                        else
                                how_many = LONG_MAX;
                        if (d <= 0)
-                               warning(_("gensub: third argument of %g treated 
as 1"), d);
+                               warning(_("gensub: third argument %g treated as 
1"), d);
                }
                DEREF(t1);
 
diff --git a/test/ChangeLog b/test/ChangeLog
index 633fef5..854c137 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-26         Arnold D. Robbins     <address@hidden>
+
+       * gensub2.ok: Update after code changes.
+
 2014-11-16         Arnold D. Robbins     <address@hidden>
 
        * Makefile.am (sortglos): New test.
diff --git a/test/gensub2.ok b/test/gensub2.ok
index 8982414..318f940 100644
--- a/test/gensub2.ok
+++ b/test/gensub2.ok
@@ -1,3 +1,4 @@
 xy
 xy
+gawk: gensub2.awk:4: warning: gensub: third argument `a' treated as 1
 yx

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

Summary of changes:
 ChangeLog       |    4 ++++
 builtin.c       |    4 ++--
 test/ChangeLog  |    4 ++++
 test/gensub2.ok |    1 +
 4 files changed, 11 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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