[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4111-ga9440d5
From: |
Arnold Robbins |
Subject: |
[SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4111-ga9440d5 |
Date: |
Fri, 4 Sep 2020 06:24:45 -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 a9440d51fdf9286dc657b10368503aecb74eb19d (commit)
from e7114e7a7fd4342a690c8214a9c0e64eb5f927b3 (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=a9440d51fdf9286dc657b10368503aecb74eb19d
commit a9440d51fdf9286dc657b10368503aecb74eb19d
Author: Arnold D. Robbins <arnold@skeeve.com>
Date: Fri Sep 4 13:24:13 2020 +0300
Make PROCINFO["identifiers"] smarter about arrays.
diff --git a/ChangeLog b/ChangeLog
index f59f298..e5e1f36 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-09-04 Arnold D. Robbins <arnold@skeeve.com>
+
+ * awkgram.y [GRAMMAR]: Install arrays as Node_var_array. Improves
+ PROCINFO["identifiers"]. Thanks to anoncoward@nym.hush.com
+ for the report.
+
2020-08-25 Arnold D. Robbins <arnold@skeeve.com>
* interpret.h (r_interpret): At Op_rule, check if in BEGINFILE. If so,
diff --git a/awkgram.c b/awkgram.c
index 13c43ff..747c75e 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -4425,7 +4425,7 @@ regular_print:
{
char *arr = yyvsp[-1]->lextok;
- yyvsp[-1]->memory = variable(yyvsp[-1]->source_line, arr,
Node_var_new);
+ yyvsp[-1]->memory = variable(yyvsp[-1]->source_line, arr,
Node_var_array);
yyvsp[-1]->opcode = Op_push_array;
yyval = list_prepend(yyvsp[0], yyvsp[-1]);
}
diff --git a/awkgram.y b/awkgram.y
index cfc12e7..72d7931 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -2147,7 +2147,7 @@ simple_variable
{
char *arr = $1->lextok;
- $1->memory = variable($1->source_line, arr, Node_var_new);
+ $1->memory = variable($1->source_line, arr, Node_var_array);
$1->opcode = Op_push_array;
$$ = list_prepend($2, $1);
}
diff --git a/test/ChangeLog b/test/ChangeLog
index 7b1184a..e9199f8 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,7 @@
+2020-09-04 Arnold D. Robbins <arnold@skeeve.com>
+
+ * id.ok: Updated after code changes.
+
2020-08-24 Arnold D. Robbins <arnold@skeeve.com>
* mbstr1.ok, mbstr2.ok: Updated after code changes.
diff --git a/test/id.ok b/test/id.ok
index 7913065..ab4df74 100644
--- a/test/id.ok
+++ b/test/id.ok
@@ -28,7 +28,7 @@ RT -> scalar
SUBSEP -> scalar
SYMTAB -> array
TEXTDOMAIN -> scalar
-an_array -> untyped
+an_array -> array
and -> builtin
asort -> builtin
asorti -> builtin
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
awkgram.c | 2 +-
awkgram.y | 2 +-
test/ChangeLog | 4 ++++
test/id.ok | 2 +-
5 files changed, 13 insertions(+), 3 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4111-ga9440d5,
Arnold Robbins <=