diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2014-08-03 14:44:09 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2014-08-03 14:44:09 -0400 |
commit | 873f410df729f1c7bbe2d3a8b95b41c9706d700d (patch) | |
tree | 4279d5ac2d9ad088dbe14a53fb1ee79e0beb2d18 | |
parent | e02ffe43c534493a40e9b9403cd91a6357514c85 (diff) | |
download | egawk-873f410df729f1c7bbe2d3a8b95b41c9706d700d.tar.gz egawk-873f410df729f1c7bbe2d3a8b95b41c9706d700d.tar.bz2 egawk-873f410df729f1c7bbe2d3a8b95b41c9706d700d.zip |
Minor patch to get --profile to work in -M (MPFR) mode.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | awkgram.c | 2 | ||||
-rw-r--r-- | awkgram.y | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2014-08-03 Andrew J. Schorr <aschorr@telemetry-investments.com> + + * awkgram.y (getfname): Match on either ptr or ptr2 so --profile + will work in -M (MPFR bignum) mode. + 2014-07-31 Arnold D. Robbins <arnold@skeeve.com> * builtin.c (format_tree): Make %c handling more sane on Windows. @@ -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; @@ -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; |