gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, feature/assoc_set, updated. gawk-4.1.0-3


From: Andrew J. Schorr
Subject: [gawk-diffs] [SCM] gawk branch, feature/assoc_set, updated. gawk-4.1.0-3600-g82a1b84
Date: Tue, 15 Jan 2019 10:59:16 -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/assoc_set has been updated
       via  82a1b8457331ee7fa439d67676ceb68cab017966 (commit)
      from  5812db74483bce781281422953d359fde5be6a99 (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=82a1b8457331ee7fa439d67676ceb68cab017966

commit 82a1b8457331ee7fa439d67676ceb68cab017966
Author: Andrew J. Schorr <address@hidden>
Date:   Tue Jan 15 10:59:01 2019 -0500

    Remove some unused local variables in builtin.c.

diff --git a/ChangeLog b/ChangeLog
index ea1badb..fb96f1f 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2019-01-15         Andrew J. Schorr      <address@hidden>
 
+       * builtin.c (do_match, do_intdiv): Remove unused `sub' and `lhs'
+       variables, since assoc_set is now doing all of the work.
+
+2019-01-15         Andrew J. Schorr      <address@hidden>
+
        * awk.h (assoc_set): Move the definition lower down because it
        needs to be after unref is declared.
        * builtin.c (do_match): Use assoc_set in 3 places.
diff --git a/builtin.c b/builtin.c
index de8e3f7..e936b5a 100644
--- a/builtin.c
+++ b/builtin.c
@@ -2706,8 +2706,6 @@ do_match(int nargs)
                                if ((s = SUBPATSTART(rp, t1->stptr, ii)) != -1) 
{
                                        size_t subpat_start;
                                        size_t subpat_len;
-                                       NODE **lhs;
-                                       NODE *sub;
 
                                        start = t1->stptr + s;
                                        subpat_start = s;
@@ -3984,7 +3982,6 @@ do_intdiv(int nargs)
 {
        NODE *numerator, *denominator, *result;
        double num, denom, quotient, remainder;
-       NODE *sub, **lhs;
 
        result = POP_PARAM();
        if (result->type != Node_var_array)

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

Summary of changes:
 ChangeLog | 5 +++++
 builtin.c | 3 ---
 2 files changed, 5 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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