mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
Release calc version 2.11.0t10.1
This commit is contained in:
8
CHANGES
8
CHANGES
@@ -3,6 +3,14 @@ The following are the changes from calc version 2.11.0t10 to date:
|
|||||||
Misc code cleanup. Removed dead code. Removed trailing whitespace.
|
Misc code cleanup. Removed dead code. Removed trailing whitespace.
|
||||||
Fixed whitespace to make the best use of 8 character tabs.
|
Fixed whitespace to make the best use of 8 character tabs.
|
||||||
|
|
||||||
|
Fixed some bugs relaing to '// and %' in combination with some
|
||||||
|
of the the rounding modes based on a patch from Ernest Bowen
|
||||||
|
<ernie@turing.une.edu.au>.
|
||||||
|
|
||||||
|
A patch from Klaus Alexander Seistrup <klaus@seistrup.dk>, when
|
||||||
|
used in combination with the GNU-readline facility, will prevent
|
||||||
|
it from saving empty lines.
|
||||||
|
|
||||||
|
|
||||||
The following are the changes from calc version 2.11.0t8.9.1 to 2.11.0t9.4.5:
|
The following are the changes from calc version 2.11.0t8.9.1 to 2.11.0t9.4.5:
|
||||||
|
|
||||||
|
2
hist.c
2
hist.c
@@ -1523,7 +1523,7 @@ hist_saveline(char *line, int len)
|
|||||||
{
|
{
|
||||||
static char *prev = NULL;
|
static char *prev = NULL;
|
||||||
|
|
||||||
if (!len)
|
if (len <= 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* ignore if identical with previous line */
|
/* ignore if identical with previous line */
|
||||||
|
@@ -18,7 +18,7 @@ static char *program;
|
|||||||
#define MAJOR_VER 2 /* major version */
|
#define MAJOR_VER 2 /* major version */
|
||||||
#define MINOR_VER 11 /* minor version */
|
#define MINOR_VER 11 /* minor version */
|
||||||
#define MAJOR_PATCH 0 /* patch level or 0 if no patch */
|
#define MAJOR_PATCH 0 /* patch level or 0 if no patch */
|
||||||
#define MINOR_PATCH "10" /* test number or empty string if no patch */
|
#define MINOR_PATCH "10.1" /* test number or empty string if no patch */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* calc version constants
|
* calc version constants
|
||||||
|
4
zmath.c
4
zmath.c
@@ -735,9 +735,9 @@ done: while (m > 0 && A[m - 1] == 0)
|
|||||||
if (s) {
|
if (s) {
|
||||||
while (--i > 0) {
|
while (--i > 0) {
|
||||||
g = (FULL) *--a + (*--b >> 1 | f);
|
g = (FULL) *--a + (*--b >> 1 | f);
|
||||||
|
f = *b & 1 ? TOPHALF : 0;
|
||||||
if (g != BASE1)
|
if (g != BASE1)
|
||||||
break;
|
break;
|
||||||
f = *b & 1 ? TOPHALF : 0;
|
|
||||||
}
|
}
|
||||||
if (g == BASE && f == 0) {
|
if (g == BASE && f == 0) {
|
||||||
while ((--i > 0) && ((*--a | *--b) == 0));
|
while ((--i > 0) && ((*--a | *--b) == 0));
|
||||||
@@ -748,9 +748,9 @@ done: while (m > 0 && A[m - 1] == 0)
|
|||||||
} else {
|
} else {
|
||||||
while (--i > 0) {
|
while (--i > 0) {
|
||||||
g = (FULL) *--a - (*--b >> 1 | f);
|
g = (FULL) *--a - (*--b >> 1 | f);
|
||||||
|
f = *b & 1 ? TOPHALF : 0;
|
||||||
if (g != 0)
|
if (g != 0)
|
||||||
break;
|
break;
|
||||||
f = *b & 1 ? TOPHALF : 0;
|
|
||||||
}
|
}
|
||||||
if (g > 0 && g < BASE)
|
if (g > 0 && g < BASE)
|
||||||
t = 1;
|
t = 1;
|
||||||
|
Reference in New Issue
Block a user