diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2014-08-03 14:44:09 -0400 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-08-03 22:14:21 +0300 |
commit | 7f35f25a0c8c7f2859b28359d61c3b4c2f608c79 (patch) | |
tree | b7c57af1cb6a8fb3d15dc01740066362b079da25 | |
parent | 8f2f7ef2872a9a95dc1506504b60225ef98944f1 (diff) | |
download | egawk-7f35f25a0c8c7f2859b28359d61c3b4c2f608c79.tar.gz egawk-7f35f25a0c8c7f2859b28359d61c3b4c2f608c79.tar.bz2 egawk-7f35f25a0c8c7f2859b28359d61c3b4c2f608c79.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
@@ -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 <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; |