Skip to content

Releases: gavinhoward/bc

Version 1.2.3

04 Apr 18:12
Compare
Choose a tag to compare

This release contains a fix for a bug: use of uninitialized data. Such data was only used when outputting an error message, but I am striving for perfection. As Michelangelo said, "Trifles make perfection, and perfection is no trifle."

$ sha512sum bc-1.2.3.tar.xz
5277177a0627b00d8022f37060f6496312ae0f25e41521b5d7276c0e177f1ee7605f148b0bdee1f526fbc5d00e36a2c1ecbf4f808978e6f55e2745f327bd3bdd  bc-1.2.3.tar.xz

$ sha256sum bc-1.2.3.tar.xz
2285c804ae0984743fa85af1fc2506c4a3e91f031f47ecb12700db0771c23349  bc-1.2.3.tar.xz

$ stat -c '%s  %n' bc-1.2.3.tar.xz
121032  bc-1.2.3.tar.xz

Version 1.2.2

01 Apr 21:40
Compare
Choose a tag to compare

This release contains fixes for OpenBSD.

$ sha512sum bc-1.2.2.tar.xz
bf49af773ff364f86a464bf87f0f09e42acd5be6e651186ba554e26f9c5e6f870537283497d8ee11980e814379b5039a334171c1ba71bd20093cdf1a1ddd9c66  bc-1.2.2.tar.xz

$ sha256sum bc-1.2.2.tar.xz
d8e491c35915c332b81d5dff3f56a2d95cdb7b1bc70fe40f9f9a1d99c2814ea7  bc-1.2.2.tar.xz

$ stat -c '%s  %n' bc-1.2.2.tar.xz
121136  bc-1.2.2.tar.xz

Version 1.2.1

30 Mar 19:09
Compare
Choose a tag to compare

This release contains bug fixes for some rare bugs.

$ sha512sum bc-1.2.1.tar.xz
d3825400ec7096411dedeccc62286066ef9dc9a77c3e75495d2cc6a057de7f343ddc916b0aa8369ebcde3eec88fce1972b7bdc69aa98a1cd8129dadf5eee2229  bc-1.2.1.tar.xz

$ sha256sum bc-1.2.1.tar.xz
1a40630e30aa91d33322a8a87688c5f98479066730e433a3134b76cd08ee7901  bc-1.2.1.tar.xz

$ stat -c '%s  %n' bc-1.2.1.tar.xz
120244  bc-1.2.1.tar.xz

Version 1.2.0

17 Mar 04:59
Compare
Choose a tag to compare

This is a production release.

There have been several changes since 1.1.0:

  • The build system had some changes.
  • Locale support has been added. (Patches welcome for translations.)
  • The ability to turn ibase, obase, and scale into stacks was added with the -g command-line option. (See the bc manual for more details.)
  • Support for compiling on Mac OSX out of the box was added.
  • The extended math library got t(x), ceil(x), and some aliases.
  • The extended math library also got r2d(x) (for converting from radians to degrees) and d2r(x) (for converting from degrees to radians). This is to allow using degrees with the standard library.
  • Both calculators now accept numbers in scientific notation. See the manuals for details.
  • Both calculators can output in either scientific or engineering notation. See the manuals for details.
  • Some inefficiencies were removed.
  • Some bugs were fixed.
  • Some bugs in the extended library were fixed.
  • Some defects from Coverity Scan were fixed.
$ sha512sum bc-1.2.0.tar.xz
d9a2d3be68948b3c33a722c5cc6c553e5132f0d649be5a984b64af65570524bb77e76aa700ff80c89e759a3df5ac6639a21daf4aea5616cb863cc2c60f2f9143  bc-1.2.0.tar.xz

$ sha256sum bc-1.2.0.tar.xz
f56a4aec4e9644510e8742c8762d923b4975e32a770433c231ded389e1e9d077  bc-1.2.0.tar.xz

$ stat -c '%s  %n' bc-1.2.0.tar.xz
120224  bc-1.2.0.tar.xz

Version 1.1.4

02 Feb 19:52
Compare
Choose a tag to compare

This release contains a fix to the build system that allows it to build on older versions of glibc.

$ sha512sum bc-1.1.4.tar.xz
fa67325cc3cb5df7513e6d0ae74d3476d7d9e87722db2f24d0cf0781622f02ec99e6ab27d3e2d57866830dd18dc43eb3c52d460be6c6ec0260ce2bad7765d7aa  bc-1.1.4.tar.xz

$ sha256sum bc-1.1.4.tar.xz
e54ff735d056efd403f588752dd6e07784fdabf5a0bece0753f2bb2141b9b364  bc-1.1.4.tar.xz

$ stat -c '%s  %n' bc-1.1.4.tar.xz
108632  bc-1.1.4.tar.xz

Version 1.1.3

01 Feb 19:52
Compare
Choose a tag to compare

This release contains a fix for a bug in the test suite where bc tests and dc tests could not be run in parallel.

$ sha512sum bc-1.1.3.tar.xz
52c0574f4c47937f59525f37868f47f270e988225fcb729caaf36757aeda0335d1e76904dcaaf362a9781b1277f19d69cd70cfc3d3e1ae78fca120cdad57b587  bc-1.1.3.tar.xz

$ sha256sum bc-1.1.3.tar.xz
a70b498062316a67dfe8a12ac7e2697e7342004c84b1b5543332638ed261f5a4  bc-1.1.3.tar.xz

$ stat -c '%s  %n' bc-1.1.3.tar.xz
108436  bc-1.1.3.tar.xz

Version 1.1.2

01 Feb 00:06
Compare
Choose a tag to compare

This release has a fix for a history bug; the down arrow did not work.

$ sha512sum bc-1.1.2.tar.xz
0e48f518a43d5a86aaca489a72fb9c1c5423e21c0e167306424f13fdc5da32f91cca20d1a07e97638366ae8f2798c867b63cada6554955e6b8402a3bbcacdd4d  bc-1.1.2.tar.xz

$ sha256sum bc-1.1.2.tar.xz
6ac9b359d894824eb62b9365260f3ebfc9405bd8d51a7b312547875ec6f5b991  bc-1.1.2.tar.xz

$ stat -c '%s  %n' bc-1.1.2.tar.xz
108776  bc-1.1.2.tar.xz

Version 1.1.1

30 Jan 16:14
Compare
Choose a tag to compare

This release fixes a bug in the 1.1.0 build system. The source is exactly the same.

The bug that was fixed was a failure to install if no EXECSUFFIX was used.

$ sha512sum bc-1.1.1.tar.xz
b1e683f7dc3c73cb5d7a0561489806a2d80e9b4c2d84b5cb5fe03a2ebfd7422641cce8318c5bc47bf9397c3127632636dd4e1ff801331a3b7e55f57075679973  bc-1.1.1.tar.xz

$ sha256sum bc-1.1.1.tar.xz
7e8d427c37223aa7da2dd83ef8503236834ed6c0bd0b94fcba041699e4bc125d  bc-1.1.1.tar.xz

$ stat -c '%s  %n' bc-1.1.1.tar.xz
108416  bc-1.1.1.tar.xz

Version 1.1.0

29 Jan 20:22
Compare
Choose a tag to compare

This is a production release. However, many new features were added since 1.0.

  1. The build system has been changed to use a custom, POSIX shell-compatible configure script (configure.sh) to generate a POSIX make-compatible Makefile, which means that bc and dc now build out of the box on any POSIX-compatible system.
  2. Out-of-memory and output errors now cause the bc to report the error, clean up, and die, rather than just reporting and trying to continue.
  3. Strings and constants are now garbage collected when possible.
  4. Signal handling and checking has been made more simple and more thorough.
  5. BcGlobals was refactored into BcVm and BcVm was made global. Some procedure names were changed to reflect its difference to everything else.
  6. Addition got a speed improvement.
  7. Some common code for addition and multiplication was refactored into its own procedure.
  8. A bug was removed where dc could have been selected, but the internal #define that returned true for a query about dc would not have returned true.
  9. Useless calls to bc_num_zero() were removed.
  10. History support was added. The history support is based off of a UTF-8 aware fork of linenoise, which has been customized with bc's own data structures and signal handling.
  11. Generating C source from the math library now removes tabs from the library, shrinking the size of the executable.
  12. The math library was shrunk.
  13. Error handling and reporting was improved.
  14. Reallocations were reduced by giving access to the request size for each operation.
  15. abs() (b command for dc) was added as a builtin.
  16. Both calculators were tested on FreeBSD.
  17. Many obscure parse bugs were fixed.
  18. Markdown and man page manuals were added, and the man pages are installed by make install.
  19. Executable size was reduced, though the added features probably made the executable end up bigger.
  20. GNU-style array references were added as a supported feature.
  21. Allocations were reduced.
  22. New operators were added: $ ($ for dc), @ (@ for dc), @=, << (H for dc), <<=, >> (h for dc), and >>=.
  23. An extended math library was added. This library contains code that makes it so I can replace my desktop calculator with this bc. See the manual for more details.
  24. Support for all capital letters as numbers was added.
  25. Support for GNU-style void functions was added.
  26. A bug fix for improper handling of function parameters was added.
  27. Precedence for the or (||) operator was changed to match GNU bc.
  28. dc was given an explicit negation command.
  29. dc was changed to be able to handle strings in arrays.
$ sha512sum bc-1.1.0.tar.xz
65bf4486139e7e06a6063e1ec6b09cd035996743742cf9a604660ccb5af9a419be6ddee1b23c4194d6078a324b0f77655fa0fa627f0e2bec6d47235efe320b89  bc-1.1.0.tar.xz

$ sha256sum bc-1.1.0.tar.xz
97064182c73d0796b077ffdeea599380eb6a8d784e87936afd06e876f272e010  bc-1.1.0.tar.xz

$ stat -c '%s  %n' bc-1.1.0.tar.xz
111280  bc-1.1.0.tar.xz

Version 1.1 Release Candidate 3

08 Jan 01:53
Compare
Choose a tag to compare
Pre-release
$ sha512sum bc-1.1rc3.tar.xz
68e771a1c9125c37567574f09c16f24284bd9efb8d9fdbf7eadb7a5428b65001adccaacf40cafc609c5363daf83d0f431056764d6e7bd08c095ffa0715b5d70e bc-1.1rc3.tar.xz

$ sha256sum bc-1.1rc3.tar.xz
69eb8e7be950ab2acce5680acec0e1876fc8debf6760403be58711a87a4ba8cd bc-1.1rc3.tar.xz