gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4016-geead4c7


From: Arnold Robbins
Subject: [SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4016-geead4c7
Date: Wed, 8 Jul 2020 04:09:36 -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-5.1-stable has been updated
       via  eead4c7f6e29955a1a9578904a95c6291e8057b5 (commit)
       via  5f67f8e055a5044d44d4bdb6d86a8c96a89046a9 (commit)
      from  96a1c9be7fced9d099dae2354d7d643ce68b8903 (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=eead4c7f6e29955a1a9578904a95c6291e8057b5

commit eead4c7f6e29955a1a9578904a95c6291e8057b5
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Wed Jul 8 11:09:21 2020 +0300

    Fix printfchar test for -M.

diff --git a/ChangeLog b/ChangeLog
index e4f980c..1ac0efb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-07-08         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * str_array.c (str_lookup): If a pure number, copy to a string. Fixes
+       at least printfchar test for MPFR, possibly some others.
+
 2020-07-07         Arnold D. Robbins     <arnold@skeeve.com>
 
        * awk.h: Turn all the flag defines into enums. GDB can then show
diff --git a/str_array.c b/str_array.c
index c90f786..84bd2f0 100644
--- a/str_array.c
+++ b/str_array.c
@@ -168,9 +168,11 @@ str_lookup(NODE *symbol, NODE *subs)
        // Special cases:
        // 1. The string was generated using CONVFMT.
        // 2. The string was from an unassigned variable.
-       // 3. The string was from an unassigned field.
+       // 3. The string was from a straight number, perniciously, from MPFR
+       // 4. The string was from an unassigned field.
        if (   subs->stfmt != STFMT_UNUSED
            || subs == Nnull_string
+           || (subs->flags & STRING) == 0
            || (subs->flags & NULL_FIELD) != 0) {
                NODE *tmp;
 

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

commit 5f67f8e055a5044d44d4bdb6d86a8c96a89046a9
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Wed Jul 8 11:03:59 2020 +0300

    Update pc/Makefile.tst.

diff --git a/pc/Makefile.tst b/pc/Makefile.tst
index e998e42..661f773 100644
--- a/pc/Makefile.tst
+++ b/pc/Makefile.tst
@@ -258,7 +258,7 @@ NEED_LINT = \
 NEED_LINT_OLD = lintold
 
 # List of tests that must be run with -M
-NEED_MPFR = mpfrbigint mpfrbigint2 mpfrcase mpfrexprange mpfrfield mpfrieee 
mpfrmemok1 \
+NEED_MPFR = mpfrbigint mpfrbigint2 mpfrcase mpfrcase2 mpfrexprange mpfrfield 
mpfrieee mpfrmemok1 \
        mpfrnegzero mpfrnonum mpfrnr mpfrrem mpfrrnd mpfrrndeval mpfrsort 
mpfrsqrt \
        mpfrstrtonum mpgforcenum mpfruplus mpfranswer42
 
@@ -3502,6 +3502,11 @@ mpfrcase:
        @AWKPATH="$(srcdir)" $(AWK) -f $@.awk  -M < "$(srcdir)"/$@.in >_$@ 2>&1 
|| echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
 
+mpfrcase2:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f $@.awk  -M < "$(srcdir)"/$@.in >_$@ 2>&1 
|| echo EXIT CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
 mpfrfield:
        @echo $@
        @AWKPATH="$(srcdir)" $(AWK) -f $@.awk  -M < "$(srcdir)"/$@.in >_$@ 2>&1 
|| echo EXIT CODE: $$? >>_$@

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

Summary of changes:
 ChangeLog       | 5 +++++
 pc/Makefile.tst | 7 ++++++-
 str_array.c     | 4 +++-
 3 files changed, 14 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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