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-300


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-3005-g3998ed0
Date: Thu, 2 Aug 2018 13:26:54 -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  3998ed059bbcfc189cd0d6c5762913fbd4ff4e77 (commit)
       via  23356c2d522bf17b4acb314f7aa6503a62db2765 (commit)
      from  4ad924c4988cfbe68b3a81c3647b0cced9fd2af3 (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=3998ed059bbcfc189cd0d6c5762913fbd4ff4e77

commit 3998ed059bbcfc189cd0d6c5762913fbd4ff4e77
Merge: 23356c2 4ad924c
Author: Arnold D. Robbins <address@hidden>
Date:   Thu Aug 2 20:26:41 2018 +0300

    Merge branch 'gawk-4.2-stable' of ssh://git.sv.gnu.org/srv/git/gawk into 
gawk-4.2-stable

diff --cc ChangeLog
index 1ce666c,2b9be8a..31d3d7a
mode 100644,100755..100755
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,9 -1,8 +1,14 @@@
 +2018-08-02         Arnold D. Robbins     <address@hidden>
 +
 +      * awkgram.y (yylex): Add lint warning upon encountering escaped
 +      physical newlines in a string.
 +      * node.c (make_str_node): Ditto.
 +
+ 2018-08-01         John E. Malmberg      <address@hidden>
+ 
 -        * custom.h: Include fp.h on OpenVMS.
 -        Workaround for bug in math.h missing some declarations.
++      * custom.h: Include fp.h on OpenVMS.
++      Workaround for bug in math.h missing some declarations.
+ 
  2018-07-31         Arnold D. Robbins     <address@hidden>
  
        * interpret.h (unfield): Add a call to force_string() on

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

commit 23356c2d522bf17b4acb314f7aa6503a62db2765
Author: Arnold D. Robbins <address@hidden>
Date:   Thu Aug 2 18:20:53 2018 +0300

    Add lint warning for escaped newlines.

diff --git a/ChangeLog b/ChangeLog
index 6821005..1ce666c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-08-02         Arnold D. Robbins     <address@hidden>
+
+       * awkgram.y (yylex): Add lint warning upon encountering escaped
+       physical newlines in a string.
+       * node.c (make_str_node): Ditto.
+
 2018-07-31         Arnold D. Robbins     <address@hidden>
 
        * interpret.h (unfield): Add a call to force_string() on
diff --git a/awkgram.c b/awkgram.c
index 10c55fa..3abb2e1 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -6274,6 +6274,8 @@ retry:
                                if (c == '\n') {
                                        if (do_posix)
                                                fatal(_("POSIX does not allow 
physical newlines in string values"));
+                                       else if (do_lint)
+                                               lintwarn(_("backslash string 
continuation is not portable"));
                                        sourceline++;
                                        continue;
                                }
diff --git a/awkgram.y b/awkgram.y
index f3d3b38..995b8bd 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -3854,6 +3854,8 @@ retry:
                                if (c == '\n') {
                                        if (do_posix)
                                                fatal(_("POSIX does not allow 
physical newlines in string values"));
+                                       else if (do_lint)
+                                               lintwarn(_("backslash string 
continuation is not portable"));
                                        sourceline++;
                                        continue;
                                }
diff --git a/node.c b/node.c
index 4ad41ef..2f9e6d4 100644
--- a/node.c
+++ b/node.c
@@ -450,7 +450,7 @@ make_str_node(const char *s, size_t len, int flags)
                                c = parse_escape(&pf);
                                if (c < 0) {
                                        if (do_lint)
-                                               lintwarn(_("backslash at end of 
string"));
+                                               lintwarn(_("backslash string 
continuation is not portable"));
                                        if ((flags & ELIDE_BACK_NL) != 0)
                                                continue;
                                        c = '\\';

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

Summary of changes:
 ChangeLog | 10 ++++++++--
 awkgram.c |  2 ++
 awkgram.y |  2 ++
 node.c    |  2 +-
 4 files changed, 13 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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