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.2-stable, updated. gawk-4.1.0-304


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-3047-gc80262b
Date: Tue, 18 Sep 2018 04:39:38 -0400 (EDT)

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.2-stable has been updated
       via  c80262bd52c0f1631e9a0aeebf7b732afb76d76f (commit)
       via  e4898b098b3bf1920291c0ccbf9bc912d4537a94 (commit)
       via  f2230060d3301f83f1223983a8ee942328c6e0c4 (commit)
       via  a3bfee4ed115a19a968568b9e2abdca2563bfb10 (commit)
      from  2b1797da18ac18d17bcd2e4171cd8c5909afb189 (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=c80262bd52c0f1631e9a0aeebf7b732afb76d76f

commit c80262bd52c0f1631e9a0aeebf7b732afb76d76f
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Sep 18 11:39:27 2018 +0300

    Update config.rpath from GNULIB.

diff --git a/ChangeLog b/ChangeLog
index 7019b3f..76ff7fc 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,10 @@
        * field.c (set_NF): Add lint warning if decrementing NF, which
        doesn't work on older Unix awks.
 
+       Unrelated:
+
+       * config.rpath: Sync to GNULIB.
+
 2018-09-16  gettextize  <address@hidden>
 
        * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.19.8.
diff --git a/config.rpath b/config.rpath
index 98183ff..fc5913d 100755
--- a/config.rpath
+++ b/config.rpath
@@ -2,7 +2,7 @@
 # Output a system dependent set of variables, describing how to set the
 # run time search path of shared libraries in an executable.
 #
-#   Copyright 1996-2016 Free Software Foundation, Inc.
+#   Copyright 1996-2018 Free Software Foundation, Inc.
 #   Taken from GNU libtool, 2001
 #   Originally by Gordon Matzigkeit <address@hidden>, 1996
 #

http://git.sv.gnu.org/cgit/gawk.git/commit/?id=e4898b098b3bf1920291c0ccbf9bc912d4537a94

commit e4898b098b3bf1920291c0ccbf9bc912d4537a94
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Sep 18 11:38:19 2018 +0300

    Add lint check for decrementing NF.

diff --git a/ChangeLog b/ChangeLog
index 119a42d..7019b3f 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,11 @@
        * builtin.c (do_print_rec): Restore check before calling get_field()
        and add do_lint to the condition.
 
+       Unrelated:
+
+       * field.c (set_NF): Add lint warning if decrementing NF, which
+       doesn't work on older Unix awks.
+
 2018-09-16  gettextize  <address@hidden>
 
        * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.19.8.
diff --git a/field.c b/field.c
index b7723aa..2f6eff7 100644
--- a/field.c
+++ b/field.c
@@ -396,6 +396,13 @@ set_NF()
        nf = get_number_si(NF_node->var_value);
        if (nf < 0)
                fatal(_("NF set to negative value"));
+
+       static bool warned = false;
+       if (do_lint && NF > nf && ! warned) {
+               warned = true;
+               lintwarn(_("decrementing NF is not portable to many awk 
versions"));
+       }
+
        NF = nf;
 
        if (NF > nf_high_water)

http://git.sv.gnu.org/cgit/gawk.git/commit/?id=f2230060d3301f83f1223983a8ee942328c6e0c4

commit f2230060d3301f83f1223983a8ee942328c6e0c4
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Sep 18 11:37:02 2018 +0300

    Improve lint check for accessing fields in END rule.

diff --git a/ChangeLog b/ChangeLog
index 947abfb..119a42d 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,13 @@
 
        * NEWS: Fix typo in gettext version.
 
+       Unrelated:
+
+       * field.c (get_field): Move lint check for field access in an
+       END rule to top level, make wording more general.
+       * builtin.c (do_print_rec): Restore check before calling get_field()
+       and add do_lint to the condition.
+
 2018-09-16  gettextize  <address@hidden>
 
        * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.19.8.
diff --git a/builtin.c b/builtin.c
index 8247ca3..d7b2337 100644
--- a/builtin.c
+++ b/builtin.c
@@ -2364,7 +2364,8 @@ do_print_rec(int nargs, int redirtype)
        if (fp == NULL)
                return;
 
-       (void) get_field(0L, NULL);     /* rebuild record if necessary */
+       if (! field0_valid || do_lint)  // lint check for field access in END
+               (void) get_field(0L, NULL);
 
        f0 = fields_arr[0];
 
diff --git a/field.c b/field.c
index 1c209c2..b7723aa 100644
--- a/field.c
+++ b/field.c
@@ -832,18 +832,19 @@ NODE **
 get_field(long requested, Func_ptr *assign)
 {
        bool in_middle = false;
+       static bool warned = false;
+       extern int currule;
+
+       if (do_lint && currule == END && ! warned) {
+               warned = true;
+               lintwarn(_("accessing fields from an END rule may not be 
portable"));
+       }
+
        /*
         * if requesting whole line but some other field has been altered,
         * then the whole line must be rebuilt
         */
        if (requested == 0) {
-               static bool warned = false;
-               extern int currule;
-
-               if (do_lint && currule == END && ! warned) {
-                       warned = true;
-                       lintwarn(_("accessing $0 from an END rule may not be 
portable"));
-               }
                if (! field0_valid) {
                        /* first, parse remainder of input record */
                        if (NF == -1) {

http://git.sv.gnu.org/cgit/gawk.git/commit/?id=a3bfee4ed115a19a968568b9e2abdca2563bfb10

commit a3bfee4ed115a19a968568b9e2abdca2563bfb10
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Sep 18 10:42:28 2018 +0300

    Fix typo in gettext version in NEWS.

diff --git a/ChangeLog b/ChangeLog
index def6d62..947abfb 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-09-18         Arnold D. Robbins     <address@hidden>
+
+       * NEWS: Fix typo in gettext version.
+
 2018-09-16  gettextize  <address@hidden>
 
        * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.19.8.
diff --git a/NEWS b/NEWS
index 90833eb..8706366 100644
--- a/NEWS
+++ b/NEWS
@@ -18,7 +18,10 @@ Changes from 4.2.1 to 4.2.2
    me to stop carrying forward decades of changes against the original
    ones from GLIBC.
 
-4. Infrastructure upgrades: Bison 3.1, Automake 1.16.1, Gettext 0.18.1.
+4. Infrastructure upgrades: Bison 3.1, Automake 1.16.1, Gettext 0.19.8.1.
+
+XX. A number of bugs, some of them quite significant, have been fixed.
+   See the ChangeLog for details.
 
 Changes from 4.2.0 to 4.2.1
 ---------------------------

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

Summary of changes:
 ChangeLog    | 20 ++++++++++++++++++++
 NEWS         |  5 ++++-
 builtin.c    |  3 ++-
 config.rpath |  2 +-
 field.c      | 22 +++++++++++++++-------
 5 files changed, 42 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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