gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, feature/mdim, updated. gawk-4.1.0-4657-gf0d32d9b


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/mdim, updated. gawk-4.1.0-4657-gf0d32d9b
Date: Tue, 22 Feb 2022 13:44:48 -0500 (EST)

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, feature/mdim has been updated
       via  f0d32d9b105d6d1ef634f116628999862f829a5d (commit)
       via  f4e04f2a0da646b4d0ecda53d97d4743e941ab65 (commit)
       via  cbe60ef06e7394db11170d19f900b023142c7431 (commit)
       via  d43ef1c772bdb5993138aed523e058664594f3e6 (commit)
       via  b87591663bee924970860dbe7ab62e37103ae7c6 (commit)
       via  7d2e5e782f93fff222024a896e041fb21b17a3b7 (commit)
       via  0b3ed07e26af46524ec196b6a46edde4f7d9e287 (commit)
       via  401405f5a38dc4214d24c5390cd35d71e82405ed (commit)
       via  8cde2e44a252ac2d80ec3f539d9c2157e8aea33e (commit)
       via  b52237743955ece2c890aeb0959c03e70e3175e3 (commit)
       via  03183d8f307ee708fe57de2d9d923c3885f80bc8 (commit)
       via  dc46f5556b5ce7ddebed876c0f40d8b5432e94bb (commit)
       via  4d85efd9d7e125b64df9a1fb3cf8ee695fd42fd3 (commit)
       via  ab614c88e23d7df619e53d4b99a5fdea111ccefa (commit)
       via  c505fe66c022418251950769ac46baf187f8e7d8 (commit)
       via  08ebc9359fdd78998e638c06c58e0e7acdcd519a (commit)
       via  508e9368d2d461b2290af6787cad6dfbed357176 (commit)
       via  c4b80d4a006d3cbcce3aaca1c598a094de936f8b (commit)
       via  322381086cf947e540e454bd427c214b1eaf6ed1 (commit)
       via  def992b66951abf1d1f6200d2af9e16ebd81365e (commit)
      from  faecd1b02fc82df662a8be7e3e581f645a8afe07 (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=f0d32d9b105d6d1ef634f116628999862f829a5d

commit f0d32d9b105d6d1ef634f116628999862f829a5d
Merge: faecd1b0 f4e04f2a
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Tue Feb 22 20:44:38 2022 +0200

    Merge branch 'master' into feature/mdim

diff --cc ChangeLog
index efa92839,c1d3977c..750ff9a5
--- a/ChangeLog
+++ b/ChangeLog
@@@ -90,40 -90,14 +90,48 @@@
        * re.c (reflags2str): Ditto.
        * str_array.c (env_array_func): Ditto.
  
 +2021-12-10         Andrew J. Schorr      <aschorr@telemetry-investments.com>
 +
 +      Introduce new Nnull_array_value NODE equivalent to Nnull_string that
 +      is used to mark an array element that was referenced without assigning
 +      a value. We can then recognize Nnull_array_value to allow a subarray
 +      to be instantiated later instead of requiring it to be scalar. This
 +      eliminates a class of fatal errors that make tricky to work with
 +      multidimensional arrays.
 +
 +      * awk.h (isnull): New macro to test whether a NODE is either
 +      Nnull_string or Nnull_array_value.
 +      (Nnull_array_value): Declare new special node.
 +      (var_uninitialized): Use isnull instead of comparing to Nnull_string.
 +      * array.c (value_info): Ditto.
 +      * awkgram.y (valinfo): Add case for Nnull_array_value.
 +      * builtin.c (do_typeof): Show Nnull_array_value as untyped.
 +      * cint_array.c (leaf_lookup): Initialize element value to
 +      Nnull_array_value instead of Nnull_string.
 +      * debug.c (print_memory): Add case for Nnull_array_value.
 +      * gawkapi.c (node_to_awk_value): Eliminate paranoid tests that
 +      values with both NUMBER and STRING set are actually Nnull_string,
 +      since they could now also be Nnull_array_value.
 +      * int_array.c (is_integer): Use isnull instead of comparing to
 +      Nnull_string.
 +      (int_insert): Initialize element value to Nnull_array_value instead of
 +      Nnull_string.
 +      * interpret.h (Op_sub_array): If the current node value is
 +      Nnull_array_value, create an array instead of issuing a fatal error
 +      about using a scalar as an array.
 +      * main.c (main): Initialize Nnull_array_value.
 +      * node.c (str2wstr): Use isnull instead of comparing to Nnull_string.
 +      * str_array.c (str_lookup): Ditto, and initialize new element values
 +      to Nnull_array_value instead of Nnull_string.
 +
+ 2021-12-08         Andrew J. Schorr      <aschorr@telemetry-investments.com>
+ 
+       * gawkapi.c (api_sym_update): Allow undefined Node_var_new variables
+       to be converted to arrays, otherwise API functions have no way
+       of creating an array that is referenced in an undefined fashion in
+       the program. This is somewhat comparable to how the set_argument
+       API allows an undefined argument variable to be converted to an array.
+ 
  2021-12-02         Andrew J. Schorr      <aschorr@telemetry-investments.com>
  
        * builtin.c (efwrite): Don't use return in call of function
diff --cc test/ChangeLog
index 95d48f50,9b8567d1..5492292b
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@@ -17,15 -17,23 +17,32 @@@
        * Makefile.am (EXTRA_DIST): nsidentifier, new test.
        * nsidentifier.awk, nsidentifier.ok: New files.
  
 +2021-12-10         Andrew J. Schorr      <aschorr@telemetry-investments.com>
 +
 +      * aadelete1.ok: Update since it is no longer a fatal error to
 +      access the subarray.
 +      * typeof3.awk: Remove comment, since it's no longer a fatal error
 +      to access the subarray.
 +      * typeof3.ok: Update to show that the uninitialized array element
 +      is untyped and we can access a subarray.
 +
+ 2021-12-08         Andrew J. Schorr      <aschorr@telemetry-investments.com>
+ 
+       * Makefile.am (EXTRA_DIST): Add readall1.awk, readall2.awk, and
+       readall.ok.
+       (SHLIB_TESTS): Add readall.
+       (GENTESTS_UNUSED): Add readall1.awk and readall2.awk.
+       (readall): Add new test of the writeall and readall functions.
+       * readall1.awk, readall2.awk, readall.ok: New files.
+ 
+ 2021-12-08         Andrew J. Schorr      <aschorr@telemetry-investments.com>
+ 
+       * Makefile.am (testext): Change awk pattern to include functions in
+       testext.awk.
+       (diffout): If running MPFR tests and there's an mpfr.ok file, compare
+       to that instead of to the regular ok file.
+       * testext.ok, testext-mpfr.ok: Update for new test_array_create test.
+ 
  2021-12-07         Andrew J. Schorr      <aschorr@telemetry-investments.com>
  
        * iolint.awk, iolint.ok: Reorder "cat" pipe/output file test to reduce

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

Summary of changes:
 ChangeLog             |   8 ++
 NEWS                  |   3 +
 doc/ChangeLog         |   5 +
 doc/gawk.info         | 205 +++++++++++++++++++---------------
 doc/gawk.texi         |  34 +++++-
 doc/gawktexi.in       |  34 +++++-
 doc/wordlist          |   2 +
 extension/ChangeLog   |  76 +++++++++++++
 extension/rwarray.3am |  35 +++++-
 extension/rwarray.c   | 298 +++++++++++++++++++++++++++++++++++++++-----------
 extension/testext.c   |  77 +++++++++++--
 gawkapi.c             |   6 +-
 pc/ChangeLog          |   4 +
 pc/Makefile.tst       |  19 +++-
 test/ChangeLog        |  17 +++
 test/Makefile.am      |  22 +++-
 test/Makefile.in      |  22 +++-
 test/readall.ok       |   7 ++
 test/readall1.awk     |  10 ++
 test/readall2.awk     |  15 +++
 test/testext-mpfr.ok  |   2 +
 test/testext.ok       |   2 +
 22 files changed, 721 insertions(+), 182 deletions(-)
 create mode 100644 test/readall.ok
 create mode 100644 test/readall1.awk
 create mode 100644 test/readall2.awk


hooks/post-receive
-- 
gawk



reply via email to

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