mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
0aca07d278 | ||
|
1ab3b2c313 | ||
|
64e2c6a262 | ||
|
eac02835ed | ||
|
33657bb2cc | ||
|
8af0b351ae | ||
|
3260f90a73 |
17
CHANGES
17
CHANGES
@@ -1,4 +1,19 @@
|
||||
The following are the changes from calc version 2.12.8.0 to date:
|
||||
The following are the changes from calc version 2.12.8.1 to date:
|
||||
|
||||
Fixed how the *.tar.bz2 are formed. The calc-2.12.8.0.tar.bz2 file
|
||||
that was formed for calc version 2.12.8.0 was missing most files.
|
||||
|
||||
Expanded 'make chk' to also verify that 'make distchk' and 'make
|
||||
distlist' execute successfully. This will help check a regression
|
||||
of the bug that produced the bogus calc-2.12.8.0.tar.bz2 file.
|
||||
|
||||
Added additional regression tests related 0^(zero_expression)==1.
|
||||
|
||||
Calc can now correctly compile without CUSTOM being defined,
|
||||
thanks to a report by <GitHub user barsnick>.
|
||||
|
||||
|
||||
The following are the changes from calc version 2.12.7.5 to 2.12.8.0:
|
||||
|
||||
Fixed a mistake in "help intro" where some inserted text changed
|
||||
the value of "." and thus made the next result incorrect.
|
||||
|
7
Makefile
7
Makefile
@@ -88,6 +88,12 @@ endif
|
||||
#READLINE_INCLUDE= -I/usr/gnu/include
|
||||
#READLINE_INCLUDE= -I/usr/local/include
|
||||
|
||||
# Where man pages are installed
|
||||
#
|
||||
# Under macOS, we cannot modify /usr/share/man.
|
||||
#
|
||||
MANDIR= /usr/local/man/man1
|
||||
|
||||
# Normally certain files depend on the Makefile. If the Makefile is
|
||||
# changed, then certain steps should be redone. If MAKE_FILE is
|
||||
# set to Makefile, then these files will depend on Makefile. If
|
||||
@@ -185,6 +191,7 @@ XVAR= \
|
||||
CCWERR='${CCWERR}' \
|
||||
NROFF='${NROFF}' \
|
||||
COMMON_ADD='${COMMON_ADD}' \
|
||||
MANDIR='${MANDIR}' \
|
||||
Q='${Q}' \
|
||||
V='${V}'
|
||||
|
||||
|
@@ -1053,7 +1053,7 @@ EXT=
|
||||
|
||||
# The default calc versions
|
||||
#
|
||||
VERSION= 2.12.8.0
|
||||
VERSION= 2.12.8.2
|
||||
|
||||
# Names of shared libraries with versions
|
||||
#
|
||||
@@ -2088,7 +2088,7 @@ LICENSE= COPYING COPYING-LGPL
|
||||
#
|
||||
DISTLIST= ${C_SRC} ${H_SRC} ${MAKE_FILE} BUGS CHANGES LIBRARY README.FIRST \
|
||||
README.WINDOWS calc.man HOWTO.INSTALL ${UTIL_MISC_SRC} ${LICENSE} \
|
||||
sample.README calc.spec.in rpm.mk README.md QUESTION CONTRIB-CODE
|
||||
sample.README calc.spec.in rpm.mk README.md QUESTIONS CONTRIB-CODE
|
||||
|
||||
# These files are used to make (but not build) a calc .a link library
|
||||
#
|
||||
@@ -4032,6 +4032,9 @@ check: all ./cal/regress.cal
|
||||
chk: ./cal/regress.cal
|
||||
${V} echo '=-=-=-=-= ${MAKE_FILE} start of $@ rule =-=-=-=-='
|
||||
${CALC_ENV} ./calc${EXT} -d -q read regress 2>&1 | ${AWK} -f check.awk
|
||||
@${MAKE} -f Makefile Q= V=@ distdir >/dev/null 2>&1
|
||||
@${MAKE} -f Makefile Q= V=@ distlist >/dev/null 2>&1
|
||||
${Q} echo 'chk OK'
|
||||
${V} echo '=-=-=-=-= ${MAKE_FILE} end of $@ rule =-=-=-=-='
|
||||
|
||||
###
|
||||
|
@@ -356,8 +356,18 @@ define test_arithmetic()
|
||||
vrfy(-16^-2 == -1/256, '447: -16^-2 == -1/256');
|
||||
vrfy(-7^2 == -49, '448: -7^2 == -49');
|
||||
vrfy(-3! == -6, '449: -3! == -6');
|
||||
vrfy(0^(0-0) == 1, '450: 0^(0-0) == 1');
|
||||
vrfy(0^(2-2) == 1, '451: 0^(2-2) == 1');
|
||||
vrfy(2^0 == 1, '452: 2^0 == 1');
|
||||
vrfy(2^(0-0) == 1, '453: 2^(0-0) == 1');
|
||||
vrfy(2^(2-2) == 1, '454: 2^(2-2) == 1');
|
||||
vrfy((2^23209-1)^0 == 1, '455: (2^23209-1)^0 == 1');
|
||||
vrfy((2^23209-1)^(0-0) == 1, '456: (2^23209-1)^(0-0) == 1');
|
||||
vrfy((2^23209-1)^(2-2) == 1, '457: (2^23209-1)^(2-2) == 1');
|
||||
vrfy((2^23209-1)^((2^23209-1)-(2^23209-1)) == 1,
|
||||
'458: (2^23209-1)^((2^23209-1)-(2^23209-1)) == 1');
|
||||
|
||||
print '450: Ending test_arithmetic';
|
||||
print '459: Ending test_arithmetic';
|
||||
}
|
||||
print '009: parsed test_arithmetic()';
|
||||
|
||||
|
@@ -348,7 +348,7 @@ EXT=
|
||||
|
||||
# The default calc versions
|
||||
#
|
||||
VERSION= 2.12.8.0
|
||||
VERSION= 2.12.8.2
|
||||
|
||||
# Names of shared libraries with versions
|
||||
#
|
||||
|
@@ -348,7 +348,7 @@ EXT=
|
||||
|
||||
# The default calc versions
|
||||
#
|
||||
VERSION= 2.12.8.0
|
||||
VERSION= 2.12.8.2
|
||||
|
||||
# Names of shared libraries with versions
|
||||
#
|
||||
|
@@ -565,6 +565,7 @@ initenv(void)
|
||||
calc_helpdir = HELPDIR;
|
||||
}
|
||||
|
||||
#if defined(CUSTOM)
|
||||
/* determine the $CALCCUSTOMHELP value */
|
||||
c = (no_env ? NULL : getenv(CALCCUSTOMHELP));
|
||||
calc_customhelpdir = (c ? strdup(c) : NULL);
|
||||
@@ -572,6 +573,7 @@ initenv(void)
|
||||
/* will use /usr/local/share/calc/custhelp */
|
||||
calc_customhelpdir = CUSTOMHELPDIR;
|
||||
}
|
||||
#endif /* CUSTOM */
|
||||
}
|
||||
|
||||
|
||||
|
@@ -45,7 +45,7 @@ static char *program;
|
||||
#define MAJOR_VER 2 /* major library version */
|
||||
#define MINOR_VER 12 /* minor library version */
|
||||
#define MAJOR_PATCH 8 /* major software version level */
|
||||
#define MINOR_PATCH 0 /* minor software version level */
|
||||
#define MINOR_PATCH 2 /* minor software version level */
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user