[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, feature/mdim, updated. gawk-4.1.0-4607-g05f0b83
From: |
Arnold Robbins |
Subject: |
[SCM] gawk branch, feature/mdim, updated. gawk-4.1.0-4607-g05f0b83 |
Date: |
Fri, 17 Dec 2021 04:13:30 -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 05f0b83e296fa925c14376576d457f774f93c2d9 (commit)
via aa58c798bed920b6051c4459488195df2b76aaf4 (commit)
via f285f960bdfb5acb50a8ec7ed4b98f17d0bd624a (commit)
from b648913e1eda997be6604e14d69434a3ceb1d940 (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=05f0b83e296fa925c14376576d457f774f93c2d9
commit 05f0b83e296fa925c14376576d457f774f93c2d9
Merge: b648913 aa58c79
Author: Arnold D. Robbins <arnold@skeeve.com>
Date: Fri Dec 17 11:13:23 2021 +0200
Merge branch 'master' into feature/mdim
diff --cc ChangeLog
index 8fe1b2c,a30f31a..11fc3af
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,37 -1,16 +1,50 @@@
+ 2021-12-17 Yuri Gribov <tetra2005@gmail.com>
+
+ Make a number of functions and variables static.
+
+ * cint_array.c (argv_array_func): Make static.
+ * debug.c (cur_rule, check_until): Ditto.
+ * field.c (default_FS, FS_re_yes_case, FS_re_no_case, FS_regexp,
+ FPAT_re_yes_case, FPAT_re_no_case, invalidate_field0: Ditto.
+ * io.c (iopflags2str): Ditto.
+ * main.c (ENVIRON_node): Ditto.
+ * 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-02 Andrew J. Schorr <aschorr@telemetry-investments.com>
* builtin.c (efwrite): Don't use return in call of function
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 13 +++++++++++++
cint_array.c | 2 +-
debug.c | 4 ++--
field.c | 16 ++++++++--------
io.c | 2 +-
main.c | 3 ++-
re.c | 2 +-
str_array.c | 2 +-
8 files changed, 29 insertions(+), 15 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, feature/mdim, updated. gawk-4.1.0-4607-g05f0b83,
Arnold Robbins <=