mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
The following are the changes in this release: Fixed bug that caused calc to fail to compile filepos2z() in file.c on little endian machines for the Debian apcalc package. Thanks to Martin Buck (m at rtin-buck dor de) for for fix. Removed unused macros from zmath.h: SWAP_B32_IN_HASH(dest, src) SWAP_B16_IN_HASH(dest, src) SWAP_B8_IN_HASH(dest, src) SWAP_B32_IN_FLAG(dest, src) SWAP_B16_IN_FLAG(dest, src) SWAP_B8_IN_FLAG(dest, src) When SWAP_HALF_IN_B32(dest, src), SWAP_B32_IN_FULL(dest, src), SWAP_B16_IN_HALF(dest, src), SWAP_B32_IN_bool(dest, src), or SWAP_B32_IN_LEN(dest, src), SWAP_HALF_IN_FILEPOS(dest, src) is an assignment such as: (*(dest) = *(src)) We now case the dest and src pointers to the proper type before referencing and performing the assignment. Documented unexpected behavior when calc is running in "shell script mode" and the prompt builtin function is used without the -p flag. Updated help/prompt, help/unexpected and the calc man page accordingly. Unless calc is given the -p command line option, calc will reopen stdin as /dev/null instead of just closing stdin. This prevents subsequent opens grabbing the 1st file descriptor. Disable regress tests 4709, 4710, and 7763 because they print multi-byte sequences, which are just fine for calc, the awk used to evaluate the regression suite output in some legacy systems report a "multibyte conversion failure". Added a number of missing Makefile variables to the "make env" rule. The man command is used to format the calc.1 man page into calc.usage. The "help calc" command now prints the formatted calc man page (calc.usage). The "help man" command now prints the formatted calc man page (calc.usage). The "help usage" command now prints the formatted calc man page (calc.usage). The file, calc.cat1, is formed by gzipping the calc.usage formatted man page. The calc.cat1 is installed as the calc cat section 1 man page. Updated the Copyright string in version.c to refer to the COPYING file and the "help copying" command. Added calc.cat1 to .gitignore. Using "sort -d -u" to sort .gitignore content. Avoiding use of modern [[ and ]] in Makefile for those legacy systems whose shell do not support them. Be sure to use ||'s between []'s to avoid problems with legacy shell such as the Bourne shell. *sigh* Fixed the order of "help full" to match the order of topics listed buy the "help help" command. Sorted the halias[] help topics table in help.c using sort -d -u.
71 lines
2.7 KiB
C
71 lines
2.7 KiB
C
/*
|
|
* version - determine the version of calc
|
|
*
|
|
* Copyright (C) 2023 David I. Bell and Landon Curt Noll
|
|
*
|
|
* Calc is open software; you can redistribute it and/or modify it under
|
|
* the terms of the version 2.1 of the GNU Lesser General Public License
|
|
* as published by the Free Software Foundation.
|
|
*
|
|
* Calc is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
|
* Public License for more details.
|
|
*
|
|
* A copy of version 2.1 of the GNU Lesser General Public License is
|
|
* distributed with calc under the filename COPYING-LGPL. You should have
|
|
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*
|
|
* Under source code control: 2023/08/19 17:32:42
|
|
* File existed as early as: 2023
|
|
*
|
|
* chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
|
* Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|
|
*/
|
|
|
|
|
|
#if !defined(INCLUDE_VERSION_H)
|
|
#define INCLUDE_VERSION_H
|
|
|
|
|
|
/*
|
|
* MAJOR_VER
|
|
*
|
|
* The MAJOR_VER is 2 is the classical version of calc.
|
|
*
|
|
* One of the main reasons why MAJOR_VER might incremented is
|
|
* if fundamental calc data objects (such as when ZVALUE or NUMBER
|
|
* or COMPLEX need to change) that would cause an incompatibility
|
|
* with existing hardware accelerators that are using fundamental
|
|
* calc data objects.
|
|
*
|
|
* MINOR_VER
|
|
*
|
|
* The MINOR_VER changes when there are incompatible changes to the calc library
|
|
* or calc custom library. The MINOR_VER might change if we need to make a major
|
|
* change to the math engine. For example, when the way 0^x was evaluated, we
|
|
* changed MINOR_VER from 13 to 14.
|
|
*
|
|
* MAJOR_PATCH
|
|
*
|
|
* The MAJOR_PATCH changes when there is an update to the calc library
|
|
* or calc custom library. For example, the MAJOR_PATCH might increment when there
|
|
* are new builtin functions available, or when there is a change to how existing
|
|
* builtin functions process arguments.
|
|
*
|
|
* MINOR_PATCH
|
|
*
|
|
* The MINOR_PATCH changes whenever there is any change in the calc release.
|
|
* For example, when the documentation changes, the MINOR_PATCH will increment.
|
|
* Moreover, when we are working towards a new production release,
|
|
* bug fix and improvement updates will cause MINOR_PATCH to increment.
|
|
*/
|
|
#define MAJOR_VER 2 /* level 1: major library version */
|
|
#define MINOR_VER 15 /* level 2: minor library version */
|
|
#define MAJOR_PATCH 0 /* level 3: major software version level */
|
|
#define MINOR_PATCH 4 /* level 4: minor software version level */
|
|
|
|
|
|
#endif /* !INCLUDE_VERSION_H*/
|