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-786


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-786-gfec6718
Date: Thu, 14 Jan 2016 18:52:49 +0000

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  fec67185e69458b550c5f8c8591176d715134e33 (commit)
       via  ba6d9c427ffa59b7cfc586ad7307f8350390e66c (commit)
      from  1b52794de2b557626b6192d04ec65ecb176b1ed7 (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=fec67185e69458b550c5f8c8591176d715134e33

commit fec67185e69458b550c5f8c8591176d715134e33
Author: Arnold D. Robbins <address@hidden>
Date:   Thu Jan 14 20:52:34 2016 +0200

    Clean up whitespace in ChangeLogs.

diff --git a/ChangeLog b/ChangeLog
index 93b9142..c406b13 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@
        Nnull_string directly. Fixes core dump reported by
        ruyk <address@hidden>.
 
+       Unrelated:
+
+       * ChangeLog: Cleanup spurious extra whitespace.
+
 2016-01-02         Arnold D. Robbins     <address@hidden>
 
        * dfa.c (add_utf8_anychar): Minor change in declaration of
@@ -51,7 +55,7 @@
        is false. Fixes a problem reported by Hanno Boeck <address@hidden>.
 
        Unrelated:
-       
+
        * dfa.c: Sync with GNU grep.
 
 2015-10-16         Arnold D. Robbins     <address@hidden>
@@ -302,7 +306,7 @@
        add check that time_t is > 0 --- means we're assigning a negative value
        to an unsigned time_t. Thanks again to Glaudiston Gomes da Silva
        <address@hidden>.
-       
+
        If localtime() or gmtime() return NULL, return a null string.
        Thanks to Andrew Schorr.
 
@@ -945,7 +949,7 @@
 
        * builtin.c (format_tree): Don't need to check return value of
        wctombr for -2. Thanks to Eli Zaretskii for pointing this out.
-       
+
        Unrelated:
 
        * gawkapi.h: Fix doc for API get_record - errcode needs to
@@ -2292,7 +2296,7 @@
 
        * awk.h (SRCFILE): New field fini_func.
        * ext.c (load_ext): Takes an additional argument to look up and
-       save the clean up routine in SRCFILE struct. 
+       save the clean up routine in SRCFILE struct.
        (INIT_FUNC, FINI_FUNC): Defines for default init and fini routine
        names.
        (do_ext): Use default for the name of the init or fini routine if
@@ -2307,8 +2311,8 @@
 
        Unrelated:
 
-       * interpret.h (Op_arrayfor_init): Use assoc_length for array size. 
-       
+       * interpret.h (Op_arrayfor_init): Use assoc_length for array size.
+
 2012-04-19         John Haque      <address@hidden>
 
        Enhanced array interface to support transparent implementation
@@ -2334,7 +2338,7 @@
        (null_array_func): Add length and store routine entries.
        * str_array.c (str_array_func): Same.
        * cint_array.c (cint_array_func): Same.
-       * int_array.c (int_array_func): Same. 
+       * int_array.c (int_array_func): Same.
        * eval.c (optypetab): Add Op_subscript_assign.
        * profile.c (pprint): Add case Op_subscript_assign.
        * interpret.h (set_array, set_idx): New variables to keep track
@@ -3517,7 +3521,7 @@
        * main.c: Change --arbitrary-precision to --bignum.
 
 2012-04-02         John Haque      <address@hidden>
-       
+
        Add support for arbitrary-precision arithmetic.
 
        * mpfr.c: New file.
@@ -3548,7 +3552,7 @@
        * eval.c (register_exec_hook): New function to manage interpreter hooks.
        (num_exec_hook, pre_execute, post_execute): New and adjusted 
definitions.
        (h_interpret): Renamed from debug_interpret.
-       (init_interpret): Changed to use the new name.  
+       (init_interpret): Changed to use the new name.
        (flags2str): New entries for MPFN and MPZN.
        (cmp_nodes): Reworked to use seperate routine for numeric comparisons.
        (set_IGNORECASE, set_BINMODE, set_LINT, update_NR, update_FNR,
@@ -3694,7 +3698,7 @@
 
 2012-01-13         Arnold D. Robbins     <address@hidden>
 
-       * dfa.c [is_valid_unibtye_character]: Fix from GNU grep to 
+       * dfa.c [is_valid_unibtye_character]: Fix from GNU grep to
        bug reported by me from Scott Deifik for DJGPP.
 
 2012-01-03         Arnold D. Robbins     <address@hidden>
@@ -4038,7 +4042,7 @@
        (do_traditional, do_posix, do_intervals, do_intl,
        do_non_decimal_data, do_profiling, do_dump_vars,
        do_tidy_mem, do_sandbox, do_lint,
-       do_lint_old): Defined as macros.        
+       do_lint_old): Defined as macros.
        * main.c: Remove definitions of the do_XX variables. Add
        do_flags definition.
        * debug.c (execute_code, do_eval, parse_condition): Save
@@ -4070,7 +4074,7 @@
        (Node_ahash, NUMIND): Nuked.
        * eval.c (r_interpret): Adjust cases Op_subscript,
        Op_subscript_lhs, Op_store_var and Op_arrayfor_incr.
-       * node.c (dupnode, unref): Removed code related to Node_ahash. 
+       * node.c (dupnode, unref): Removed code related to Node_ahash.
        * str_array.c: New file to handle array with string indices.
        * int_array.c: New file to handle array with integer indices.
        * cint_array.c: New file. Special handling of arrays with
@@ -4123,7 +4127,7 @@
        cases Op_K_getline, Op_after_beginfile, Op_after_endfile,
        Op_newfile and Op_K_exit.
        * io.c (after_beginfile): When skipping a file using nextfile,
-       return zero in case there was an error opening the file. 
+       return zero in case there was an error opening the file.
        (has_endfile): Nuke global variable.
        (inrec): Add a second argument to pass errno to the calling
        routine.
@@ -4204,7 +4208,7 @@
 2011-07-15         John Haque      <address@hidden>
 
        * awk.h (Op_sub_builtin): New opcode.
-       (GSUB, GENSUB, AFTER_ASSIGN, LITERAL): New flags for 
+       (GSUB, GENSUB, AFTER_ASSIGN, LITERAL): New flags for
        Op_sub_builtin.
        * awkgram.y (struct tokentab): Change opcode to Op_sub_builtin
        for sub, gsub and gensub.
@@ -4212,7 +4216,7 @@
        * builtin.c (do_sub, do_gsub, do_gensub): Nuke.
        (sub_common): Renamed to do_sub. Relocate gensub argument
        handling code from do_gensub to here; Simplify the code a
-       little bit. 
+       little bit.
        * eval.c (r_interpret): Handle Op_sub_builtin. Avoid field
        re-splitting or $0 rebuilding if (g)sub target string is
        a field and no substitutions were done.
@@ -4235,7 +4239,7 @@
 2011-07-15         Arnold D. Robbins     <address@hidden>
 
        * awk.h: Typo fix: "loner" --> longer. Thanks to Nelson Beebe.
-       * builtin.c (efwrite): Fix flushing test back to what it was 
+       * builtin.c (efwrite): Fix flushing test back to what it was
        in 3.1.8. Thanks to Strefil <address@hidden> for the problem
        report.
        * configure.ac: Bump version to 4.0.0a for stable branch.
diff --git a/doc/ChangeLog b/doc/ChangeLog
index b0eb67e..43594dd 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,7 @@
+2016-01-14         Arnold D. Robbins     <address@hidden>
+
+       * ChangeLog: Remove spurious whitespace.
+
 2016-01-13         Arnold D. Robbins     <address@hidden>
 
        * gawktexi.in (Array Sorting Functions): Add an example of
@@ -87,7 +91,7 @@
 2015-06-13         Arnold D. Robbins     <address@hidden>
 
        * gawktexi.in: Comment out exercise 10.3, since the answer
-       is included in the text. Thanks to Antonio Colombo 
+       is included in the text. Thanks to Antonio Colombo
        for pointing this out.
 
 2015-06-12         Arnold D. Robbins     <address@hidden>
@@ -610,7 +614,7 @@
 
 2014-05-29         Arnold D. Robbins     <address@hidden>
 
-       * gawktexi.in: Remove some obsolete bits, fix up some other 
+       * gawktexi.in: Remove some obsolete bits, fix up some other
        minor stuff.
 
 2014-05-27         Arnold D. Robbins     <address@hidden>
@@ -1342,7 +1346,7 @@
 
        * gawk.texi, gawk.1: Replace references to dlload with dl_load.
        But much more work needs to be done on the docs.
-       
+
 2012-05-19         Andrew J. Schorr     <address@hidden>
 
        * gawk.texi, gawk.1: Document new -i option, and describe new default
diff --git a/test/ChangeLog b/test/ChangeLog
index 10e942b..56edb8f 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -3,6 +3,10 @@
        * Makefile.am (aryprm9): New test.
        * aryprm9.awk, aryprm9.ok: New files.
 
+       Unrelated:
+
+       * ChangeLog: Remove spurious whitespace.
+
 2015-12-27         Arnold D. Robbins     <address@hidden>
 
        * Makefile.am (profile8): New test.
@@ -74,7 +78,7 @@
 
 2015-05-21         Arnold D. Robbins     <address@hidden>
 
-       * fts.awk: Really remove atime from the output. 
+       * fts.awk: Really remove atime from the output.
        This avoids spurious failures on heavily loaded systems.
 
        * Makefile.am: Add list of needed locales to "inadequate locale

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

commit ba6d9c427ffa59b7cfc586ad7307f8350390e66c
Author: Arnold D. Robbins <address@hidden>
Date:   Thu Jan 14 20:48:15 2016 +0200

    Fix for extra parameters going down the call chain.

diff --git a/ChangeLog b/ChangeLog
index 1071602..93b9142 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-01-14         Arnold D. Robbins     <address@hidden>
+
+       * eval.c (r_get_lhs): If original array was Node_var_new,
+       assign value that is dupnode of Nnull_string and not
+       Nnull_string directly. Fixes core dump reported by
+       ruyk <address@hidden>.
+
 2016-01-02         Arnold D. Robbins     <address@hidden>
 
        * dfa.c (add_utf8_anychar): Minor change in declaration of
diff --git a/eval.c b/eval.c
index 05924cd..291d084 100644
--- a/eval.c
+++ b/eval.c
@@ -1154,7 +1154,7 @@ r_get_lhs(NODE *n, bool reference)
                                        array_vname(n));
                if (n->orig_array->type != Node_var) {
                        n->orig_array->type = Node_var;
-                       n->orig_array->var_value = Nnull_string;
+                       n->orig_array->var_value = dupnode(Nnull_string);
                }
                /* fall through */
        case Node_var_new:
diff --git a/test/ChangeLog b/test/ChangeLog
index 6bed969..10e942b 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2016-01-14         Arnold D. Robbins     <address@hidden>
+
+       * Makefile.am (aryprm9): New test.
+       * aryprm9.awk, aryprm9.ok: New files.
+
 2015-12-27         Arnold D. Robbins     <address@hidden>
 
        * Makefile.am (profile8): New test.
diff --git a/test/Makefile.am b/test/Makefile.am
index 01c1523..540e8d9 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -93,6 +93,8 @@ EXTRA_DIST = \
        aryprm7.ok \
        aryprm8.awk \
        aryprm8.ok \
+       aryprm9.awk \
+       aryprm9.ok \
        arysubnm.awk \
        arysubnm.ok \
        asgext.awk \
@@ -1030,7 +1032,7 @@ BASIC_TESTS = \
        addcomma anchgsub argarray arrayparm arrayprm2 arrayprm3 \
        arrayref arrymem1 arryref2 arryref3 arryref4 arryref5 arynasty \
        arynocls aryprm1 aryprm2 aryprm3 aryprm4 aryprm5 aryprm6 aryprm7 \
-       aryprm8 arysubnm asgext awkpath \
+       aryprm8 aryprm9 arysubnm asgext awkpath \
        back89 backgsub badassign1 badbuild \
        callparam childin clobber closebad clsflnam compare compare2 concat1 
concat2 \
        concat3 concat4 convfmt \
diff --git a/test/Makefile.in b/test/Makefile.in
index a89fc86..723c39e 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -350,6 +350,8 @@ EXTRA_DIST = \
        aryprm7.ok \
        aryprm8.awk \
        aryprm8.ok \
+       aryprm9.awk \
+       aryprm9.ok \
        arysubnm.awk \
        arysubnm.ok \
        asgext.awk \
@@ -1286,7 +1288,7 @@ BASIC_TESTS = \
        addcomma anchgsub argarray arrayparm arrayprm2 arrayprm3 \
        arrayref arrymem1 arryref2 arryref3 arryref4 arryref5 arynasty \
        arynocls aryprm1 aryprm2 aryprm3 aryprm4 aryprm5 aryprm6 aryprm7 \
-       aryprm8 arysubnm asgext awkpath \
+       aryprm8 aryprm9 arysubnm asgext awkpath \
        back89 backgsub badassign1 badbuild \
        callparam childin clobber closebad clsflnam compare compare2 concat1 
concat2 \
        concat3 concat4 convfmt \
@@ -2660,6 +2662,11 @@ aryprm8:
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 
+aryprm9:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
 arysubnm:
        @echo $@
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
diff --git a/test/Maketests b/test/Maketests
index bb5712d..214f5dd 100644
--- a/test/Maketests
+++ b/test/Maketests
@@ -100,6 +100,11 @@ aryprm8:
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 
+aryprm9:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
 arysubnm:
        @echo $@
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
diff --git a/test/aryprm9.awk b/test/aryprm9.awk
new file mode 100644
index 0000000..004e3c3
--- /dev/null
+++ b/test/aryprm9.awk
@@ -0,0 +1,16 @@
+#!/usr/bin/gawk -f
+BEGIN {
+
+     for (i = 0; i < 100; i++)
+         func_exec()
+}
+
+function func_exec(opaque)
+{
+     func_a(1, opaque)    #set additional argument, not expected by fname
+}
+
+function func_a(a,    b, loc1, loc2)
+{
+     b = 0            #unref Nnull_string
+}
diff --git a/test/aryprm9.ok b/test/aryprm9.ok
new file mode 100644
index 0000000..e69de29

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

Summary of changes:
 ChangeLog                         |   43 +++++++++++++++++++++++-------------
 doc/ChangeLog                     |   10 ++++++--
 eval.c                            |    2 +-
 test/ChangeLog                    |   11 ++++++++-
 test/Makefile.am                  |    4 ++-
 test/Makefile.in                  |    9 +++++++-
 test/Maketests                    |    5 ++++
 test/aryprm9.awk                  |   16 +++++++++++++
 test/{arrayprm2.ok => aryprm9.ok} |    0
 9 files changed, 77 insertions(+), 23 deletions(-)
 create mode 100644 test/aryprm9.awk
 copy test/{arrayprm2.ok => aryprm9.ok} (100%)


hooks/post-receive
-- 
gawk



reply via email to

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