Release v2.14.0.0

The :-separated default CALCRC value has been reversed.
The default CALCRC was:

    ${CALC_SHAREDIR}/startup:~/.calcrc:./.calcinit

The default CALCRC is now:

    ./.calcinit:~/.calcrc:${CALC_SHAREDIR}/startup

See "help environment" for details.

Added engineering mode as per a GitHub pull request from
<GitHub user heitzmann>.  Thank you!  For example:

    ; config("mode","eng"),
    ; 10^41
	    100e39

or for example:

    ; base(1000),
    ; 2^23209-1
	    ~402.87411577898877818187e6984

For more information see:

    help base

Added regression test code for engineering mode.  Improved and
expanded regression test code related to the base() and base2()
builtin functions.

Fixed a critical bug in the above mentioned pull request where
a call to base2(1000) would make calc unstable and likely to
dump core.
This commit is contained in:
Landon Curt Noll
2021-09-06 23:30:06 -07:00
parent f753884008
commit cd736fdbd4
5 changed files with 8 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
The following are the changes from calc version 2.13.0.1 to date: The following are the changes from calc version 2.14.0.0 to date:
The :-separated default CALCRC value has been reversed. The :-separated default CALCRC value has been reversed.
The default CALCRC was: The default CALCRC was:
@@ -37,7 +37,7 @@ The following are the changes from calc version 2.13.0.1 to date:
dump core. dump core.
The following are the changes from calc version 2.13.0.1: The following are the changes from calc version 2.13.0.1 to 2.13.0.1:
Replaced /usr/local with the use of ${PREFIX} in calc Makefiles. Replaced /usr/local with the use of ${PREFIX} in calc Makefiles.
@@ -70,7 +70,7 @@ The following are the changes from calc version 2.13.0.1:
Updated HOWTO.INSTALL to mention Makefile.local. Updated HOWTO.INSTALL to mention Makefile.local.
The following are the changes from calc version 2.13.0.0: The following are the changes from calc version 2.13.0.0 to 2.13.0.0:
Fixed typo (missing quotes) in the env rule. Fixed typo (missing quotes) in the env rule.

View File

@@ -1198,7 +1198,7 @@ EXT=
# The default calc versions # The default calc versions
# #
VERSION= 2.13.0.1 VERSION= 2.14.0.0
# Names of shared libraries with versions # Names of shared libraries with versions
# #

View File

@@ -489,7 +489,7 @@ EXT=
# The default calc versions # The default calc versions
# #
VERSION= 2.13.0.1 VERSION= 2.14.0.0
# Names of shared libraries with versions # Names of shared libraries with versions
# #

View File

@@ -489,7 +489,7 @@ EXT=
# The default calc versions # The default calc versions
# #
VERSION= 2.13.0.1 VERSION= 2.14.0.0
# Names of shared libraries with versions # Names of shared libraries with versions
# #

View File

@@ -52,9 +52,9 @@ static char *program;
#define MAJOR_VER 2 /* major library version */ #define MAJOR_VER 2 /* major library version */
#define MINOR_VER 13 /* minor library version */ #define MINOR_VER 14 /* minor library version */
#define MAJOR_PATCH 0 /* major software version level */ #define MAJOR_PATCH 0 /* major software version level */
#define MINOR_PATCH 1 /* minor software version level */ #define MINOR_PATCH 0 /* minor software version level */
/* /*