Skip to content

Commit 077ba65

Browse files
committed
Release v2.16.0.0
The following are the changes in this release: Starting with calc version 2.16.0.0, the ability to perform arithmetic on addresses of values in calc objects has been greatly restricted. Most arithmetic on of value addresses could easily cause calc to crash. For example, prior to calc version 2.16.0.0, the following command was likely to crash calc: calc '*((&.)+1e9)' Subtracting two value addresses is permitted, however there is NO guarantee that the address of a value will remain consistent across calc runs. Addresses of values depend on the circumstances of when the calc values were formed. The above restrictions and caveats apply to addresses of values. Such restrictions and caveats to NOT apply to the addresses of octets, NOR to the addresses within strings. If isptr(x) == 2, then x is value-pointer and the above mentioned restrictions and caveats apply. See "help address" for more information on value address arithmetic. Added E_INVALID_DEREF (10610) error code to indicate the invalid dereferencing a non-variable. Added E_INVALID_ADDR_OP (10611) error code to indicate an invalid arithmetic address operation. We plan to let this most recent change settle down before performing the calc v2 to calc v3 fork. Therefore, version 2.16.1.0 will form the basis for the calc v2 to calc v3 fork.
1 parent f912da9 commit 077ba65

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3207,7 +3207,7 @@ prep:
32073207
${Q}echo '=-=-=-=-=-= end of ${MAKE} chk =-=-=-=-=-='
32083208
${Q}echo
32093209
@${Q}if ! ./chk_tree >/dev/null 2>&1; then \
3210-
echo almost satifactory except for chk_tree; \
3210+
echo almost satisfactory except for chk_tree; \
32113211
else \
32123212
echo All is OK; \
32133213
fi

Makefile.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,11 +1245,11 @@ EXT=
12451245

12461246
# The calc version in the form of x.y.z.w
12471247
#
1248-
VERSION= 2.15.1.2
1248+
VERSION= 2.16.0.0
12491249

12501250
# The calc major version in the form of x.y.z
12511251
#
1252-
VER= 2.15.1
1252+
VER= 2.16.0
12531253

12541254
# Names of shared libraries with versions
12551255
#

version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
* bug fix and improvement updates will cause MINOR_PATCH to increment.
6363
*/
6464
#define MAJOR_VER 2 /* level 1: major library version */
65-
#define MINOR_VER 15 /* level 2: minor library version */
66-
#define MAJOR_PATCH 1 /* level 3: major software version level */
67-
#define MINOR_PATCH 2 /* level 4: minor software version level */
65+
#define MINOR_VER 16 /* level 2: minor library version */
66+
#define MAJOR_PATCH 0 /* level 3: major software version level */
67+
#define MINOR_PATCH 0 /* level 4: minor software version level */
6868

6969
/*
7070
* Defining PERMIT_DANGEROUS_ADDRESS_ARITHMETIC is NOT supported!

0 commit comments

Comments
 (0)