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


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-378-g7f35f25
Date: Sun, 03 Aug 2014 19:14:34 +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  7f35f25a0c8c7f2859b28359d61c3b4c2f608c79 (commit)
      from  8f2f7ef2872a9a95dc1506504b60225ef98944f1 (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=7f35f25a0c8c7f2859b28359d61c3b4c2f608c79

commit 7f35f25a0c8c7f2859b28359d61c3b4c2f608c79
Author: Andrew J. Schorr <address@hidden>
Date:   Sun Aug 3 14:44:09 2014 -0400

    Minor patch to get --profile to work in -M (MPFR) mode.

diff --git a/ChangeLog b/ChangeLog
index ba56b20..8a9e46e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,11 @@
        * interpret.h (r_interpret): Move setting of ERRNO to here, from ...
        * io.c (inrec): ... here. Makes the code cleaner.
 
+2014-08-03         Andrew J. Schorr     <address@hidden>
+
+       * awkgram.y (getfname): Match on either ptr or ptr2 so --profile
+       will work in -M (MPFR bignum) mode.
+
 2014-07-31         Arnold D. Robbins     <address@hidden>
 
        * builtin.c (format_tree): Make %c handling more sane on Windows.
diff --git a/awkgram.c b/awkgram.c
index 711c2e3..be852df 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -4283,7 +4283,7 @@ getfname(NODE *(*fptr)(int))
        j = sizeof(tokentab) / sizeof(tokentab[0]);
        /* linear search, no other way to do it */
        for (i = 0; i < j; i++) 
-               if (tokentab[i].ptr == fptr)
+               if (tokentab[i].ptr == fptr || tokentab[i].ptr2 == fptr)
                        return tokentab[i].operator;
 
        return NULL;
diff --git a/awkgram.y b/awkgram.y
index 1a19946..53a218a 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -1944,7 +1944,7 @@ getfname(NODE *(*fptr)(int))
        j = sizeof(tokentab) / sizeof(tokentab[0]);
        /* linear search, no other way to do it */
        for (i = 0; i < j; i++) 
-               if (tokentab[i].ptr == fptr)
+               if (tokentab[i].ptr == fptr || tokentab[i].ptr2 == fptr)
                        return tokentab[i].operator;
 
        return NULL;

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

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


hooks/post-receive
-- 
gawk



reply via email to

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