summaryrefslogtreecommitdiff
path: root/math/bc-gh
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2019-08-06 11:13:07 +0000
committergdt <gdt@pkgsrc.org>2019-08-06 11:13:07 +0000
commit707bfcdbdb43169301a9eb9f9088bcc096df4702 (patch)
treeca219498c119288b4f0ae664a63e2cdd17b1f6fe /math/bc-gh
parent400a4163cd09fcf6be511f92f1ad5f062f197257 (diff)
downloadpkgsrc-707bfcdbdb43169301a9eb9f9088bcc096df4702.tar.gz
math/bc-gh: Update to 2.1.0
Upstream changes: This release is a production release. The following bugs were fixed: A dc bug that caused stack mishandling was fixed. A warning on OpenBSD was fixed. Bugs in ctrl+arrow operations in history were fixed. The ability to paste multiple lines in history was added. A bc bug, mishandling of array arguments to functions, was fixed. A crash caused by freeing the wrong pointer was fixed. A dc bug where strings, in a rare case, were mishandled in parsing was fixed. In addition, the following changes were made: Division was slightly optimized. An option was added to the build to disable printing of prompts. The special case of empty arguments is now handled. This is to prevent errors in scripts that end up passing empty arguments. A harmless bug was fixed. This bug was that, with the pop instructions (mostly) removed (see below), bc would leave extra values on its stack for void functions and in a few other cases. These extra items would not affect anything put on the stack and would not cause any sort of crash or even buggy behavior, but they would cause bc to take more memory than it needed. On top of the above changes, the following optimizations were added: The need for pop instructions in bc was removed. Extra tests on every iteration of the interpreter loop were removed. Updating function and code pointers on every iteration of the interpreter loop was changed to only updating them when necessary. Extra assignments to pointers were removed. Altogether, these changes sped up the interpreter by around 2x. NOTE: This is the last release with new features because this bc is now considered complete. From now on, only bug fixes and new translations will be added to this bc.
Diffstat (limited to 'math/bc-gh')
-rw-r--r--math/bc-gh/Makefile4
-rw-r--r--math/bc-gh/distinfo10
2 files changed, 7 insertions, 7 deletions
diff --git a/math/bc-gh/Makefile b/math/bc-gh/Makefile
index 3d6895908e3..89c52fbbbdb 100644
--- a/math/bc-gh/Makefile
+++ b/math/bc-gh/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2019/06/17 00:35:33 gdt Exp $
+# $NetBSD: Makefile,v 1.2 2019/08/06 11:13:07 gdt Exp $
-VERSION= 2.0.3
+VERSION= 2.1.0
DISTNAME= bc-${VERSION}
PKGNAME= bc-gh-${VERSION}
CATEGORIES= math
diff --git a/math/bc-gh/distinfo b/math/bc-gh/distinfo
index ffc31dad437..4868a26f5f6 100644
--- a/math/bc-gh/distinfo
+++ b/math/bc-gh/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2019/06/17 00:35:33 gdt Exp $
+$NetBSD: distinfo,v 1.2 2019/08/06 11:13:07 gdt Exp $
-SHA1 (bc-2.0.3.tar.xz) = e4f162f7d87b6c09c1fe2ff0598397cdd9c62261
-RMD160 (bc-2.0.3.tar.xz) = 889d192320f6a225350c4e5de2e99472d4cf27e5
-SHA512 (bc-2.0.3.tar.xz) = 1eabc44a33c08e1cc20c7112843e18544860dc8621cf655c2453858d64b720cada4835ab6142110f296c4d6ad82e77725e603fd11b84b61b073efccc9f6a1c45
-Size (bc-2.0.3.tar.xz) = 162360 bytes
+SHA1 (bc-2.1.0.tar.xz) = 4de8fa54182036e8391d9fd9ae2ada4e09664da1
+RMD160 (bc-2.1.0.tar.xz) = fe6a4c5fe72eaa7e2a0ed6dfdbdc6d888abd780b
+SHA512 (bc-2.1.0.tar.xz) = d117c0433b08d7bf4986ff49a39b6cbd1048399e74a3781ba48b27008d18c1cedfaca79c1d0510919b194bc593699ba99a736c377815cb3659cec772b45b1cd1
+Size (bc-2.1.0.tar.xz) = 153912 bytes