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.1-stable, updated. gawk-4.1.0-928


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-928-g7264529
Date: Fri, 1 Jul 2016 07:05:23 +0000 (UTC)

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.1-stable has been updated
       via  72645295eec48c30ed6a9b9f8bf21b9f53995524 (commit)
      from  82024c4ac22e50de3b0ad36d8aa81c52e7b4c9ae (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=72645295eec48c30ed6a9b9f8bf21b9f53995524

commit 72645295eec48c30ed6a9b9f8bf21b9f53995524
Author: Arnold D. Robbins <address@hidden>
Date:   Fri Jul 1 10:05:03 2016 +0300

    Add FUNCTAB and SYMTAB to variables dumped with -d.

diff --git a/ChangeLog b/ChangeLog
index a109b7d..5e38130 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,11 @@
        * gawkapi.c (api_warning): Fix the comment header.
        (api_lintwarn): Factor out the call to va_end to after the if.
 
+       Unrelated:
+
+       * symbol.c (get_symbols): Add FUNCTAB and SYMTAB to the list
+       for the -d option. Thanks to Hermann Peifer for the report.
+
 2016-06-26         Arnold D. Robbins     <address@hidden>
 
        Repair change of 2015-08-25 to handling of MAYBE_NUM.
diff --git a/symbol.c b/symbol.c
index 8533fad..fe7e375 100644
--- a/symbol.c
+++ b/symbol.c
@@ -409,7 +409,8 @@ get_symbols(SYMBOL_TYPE what, bool sort)
                max = the_table->table_size * 2;
 
                list = assoc_list(the_table, "@unsorted", ASORTI);
-               emalloc(table, NODE **, (var_count + 1) * sizeof(NODE *), 
"get_symbols");
+               /* add three: one for FUNCTAB, one for SYMTAB, and one for a 
final NULL */
+               emalloc(table, NODE **, (var_count + 1 + 1 + 1) * sizeof(NODE 
*), "get_symbols");
 
                for (i = count = 0; i < max; i += 2) {
                        r = list[i+1];
@@ -417,6 +418,9 @@ get_symbols(SYMBOL_TYPE what, bool sort)
                                continue;
                        table[count++] = r;
                }
+
+               table[count++] = func_table;
+               table[count++] = symbol_table;
        }
 
        efree(list);
diff --git a/test/ChangeLog b/test/ChangeLog
index 585ab14..f7c2892 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -2,6 +2,7 @@
 
        * arrayind1.awk, arrayind1.ok: Comment out prints to stderr to
        avoid buffer flushing on obscure systems.
+       * dumpvars.ok, symtab6.ok, symtab8.ok: Update after code changes.
 
 2016-06-14         Arnold D. Robbins     <address@hidden>
 
diff --git a/test/dumpvars.ok b/test/dumpvars.ok
index 73d3d30..85d1c85 100644
--- a/test/dumpvars.ok
+++ b/test/dumpvars.ok
@@ -9,6 +9,7 @@ FILENAME: "-"
 FNR: 3
 FPAT: "[^[:space:]]+"
 FS: " "
+FUNCTAB: array, 41 elements
 IGNORECASE: 0
 LINT: 0
 NF: 1
@@ -23,4 +24,5 @@ RS: "\n"
 RSTART: 0
 RT: "\n"
 SUBSEP: "\034"
+SYMTAB: array, 28 elements
 TEXTDOMAIN: "messages"
diff --git a/test/symtab6.ok b/test/symtab6.ok
index 91f27e7..7de717a 100644
--- a/test/symtab6.ok
+++ b/test/symtab6.ok
@@ -9,6 +9,7 @@ FILENAME: ""
 FNR: 0
 FPAT: "[^[:space:]]+"
 FS: " "
+FUNCTAB: array, 41 elements
 IGNORECASE: 0
 LINT: 0
 NF: 0
@@ -23,4 +24,5 @@ RS: "\n"
 RSTART: 0
 RT: ""
 SUBSEP: "\034"
+SYMTAB: array, 29 elements
 TEXTDOMAIN: "messages"
diff --git a/test/symtab8.ok b/test/symtab8.ok
index 724f374..da29b58 100644
--- a/test/symtab8.ok
+++ b/test/symtab8.ok
@@ -9,6 +9,7 @@ FIELDWIDTHS: ""
 FNR: 1
 FPAT: "[^[:space:]]+"
 FS: " "
+FUNCTAB: array, 41 elements
 IGNORECASE: 0
 LINT: 0
 NF: 1
@@ -23,5 +24,6 @@ RS: "\n"
 RSTART: 0
 RT: "\n"
 SUBSEP: "\034"
+SYMTAB: array, 29 elements
 TEXTDOMAIN: "messages"
 test: 1

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

Summary of changes:
 ChangeLog        |    5 +++++
 symbol.c         |    6 +++++-
 test/ChangeLog   |    1 +
 test/dumpvars.ok |    2 ++
 test/symtab6.ok  |    2 ++
 test/symtab8.ok  |    2 ++
 6 files changed, 17 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
gawk



reply via email to

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