--- feisty/apcalc-2.12.1.5/CHANGES 2006-09-18 09:14:03.000000000 -0400 +++ apcalc-2.12.1.13/CHANGES 2007-02-18 09:45:50.000000000 -0500 @@ -1,4 +1,226 @@ -The following are the changes from calc version 2.12.1 to date: +The following are the changes from calc version 2.12.1.10 to date: + + Put back the missing -s flags on the cscripts: mersenne, 4dsphere, + fprodcut, plus, and powerterm. Thanks goes to Bradley Reed + for discovering this problem. + + All static variables are now declared with the symbol STATIC. + All extern variables are now declared with the symbol EXTERN. + All static functions are now declared with the symbol S_FUNC. + All extern functions are now declared with the symbol E_FUNC. + The include file decl.h defines these 4 symbols by default + to static, extern, static, and extern respectively. Under + Windoz, DLL is also defined accorind to the _EXPORTING symbol + and is prepended to the EXTERN and E_FUNC symbols. The decl.h + file has replaced the win32dll.h file. + + Added Apple Mac OS X compiler set in the Makefile. + + When WITH_TLS is defined, calc attempts to compile with Thread Local + Storage. As of version 2.12.1.12 this mode is extremely experimental. + Calc may not compile when WITH_TLS defined. + + Fixed E_FUNC vs EXTERN issues discovered by Mirko Viviani + . + + Removed include of . The building of the include file + "have_malloc.h" has been removed from the Makefile. One some + systems such as FreeBSD, the file /usr/include/malloc.h exists + and contains an forced error saying that stdlib.h should be used + instead. The Makefile symbol HAVE_MALLOC has been removed. + + Fixed FreeBSD dereferencing type-punned pointer error in filepos2z(). + + Removed SGI IRIX from the compiler section. + + Moved the sample code in the sample sub-directory up into the + main source level. The sample/many_random.c source file is + now sample_many.c. The sample/test_random.c source file is now + sample_rand.c. The sample Makefile and the sub-directory is no more. + + Renamed the following source files: + + math_error.h ==> lib_calc.h + string.c ==> str.c + string.h ==> str.h + + Renamed the following variables related to calc error processing: + + int calc_jmp ==> int calc_use_matherr_jmpbuf + jmp_buf calc_jmp_buf ==> jmp_buf calc_matherr_jmpbuf + + int post_init ==> int calc_use_scanerr_jmpbuf + jmp_buf jmpbuf ==> jmpbuf calc_scanerr_jmpbuf + + char *calc_error ==> char calc_err_msg[MAXERROR+1] + + These values are now declared in the lib_calc.h include file. + The value MAXERROR is now defined in lib_calc.h instead of calc.h. + The calc_err_msg[] buffer is now used for math errors as well + as scan and parse errors. + + Parse/scan errors will not be printed if calc_print_scanerr_msg + is zero. By default: + + int calc_print_scanerr_msg = 1; + + This variable is declared in the lib_calc.h include file. Storage + comes from libcalc. + + Parse/scan warnings will not be printed if calc_print_scanwarn_msg + is zero. By default: + + int calc_print_scanwarn_msg = 1; + + This variable is declared in the lib_calc.h include file. Storage + comes from libcalc. + + The last parse/scan error message is stored in the calc_err_msg[] + buffer. This happens even when calc_print_scanerr_msg is zero. + + The last parse/scan warning message is stored in the calc_warn_msg[] + buffer. After each parse/scan warning condition is detected, + the value calc_warn_cnt is incremented. This happens even when + calc_print_scanwarn_msg is zero. + + The calc_warn_msg[] buffer and calc_warn_cnt variables are declared + in the lib_calc.h include file. Storage comes from libcalc. + + See the file, LIBRARY or use the calc command "help libcalc" for + more information on calc error processing. This file has been + updated to reflect the changes noted above in this section. + + The make install rule removes std_arg.h, have_malloc.h, math_error.h, + string.h, and win32dll.h from ${INCDIR} if they exist. These calc + include files are no longer supported. + + +The following are the changes from calc version 2.12.1.8 to 2.12.1.9: + + Fixed calc cscripts that contained comments that were not valid calc + comments. Improved calc comment documentation in "help unexpected" + to help other avoid similar mistakes. Calc comments are of the form: + + /* c style comments */ + /* + * multi-line + * comments + */ + ## two or more #-signs + ### in a row + ### Note that # along is a calc unary and binary operator + + Added "help pound" or "help #' to document the # operator, comments, + and the first line of cscript files. + + Documented these help commands in "help help": + + help -> + help * + help . + help % + help // + help # + + The usage help file is now formed from the contents of the calc man page. + So "help usage" prints the version of the calc man page. Added ${COL} + makefile symbol to support the formation of the calc.usage file from + calc.1 via the CALCPAGER (less). + + The "help calc" command is now equivalent to "help help". + + The "help define" command is now equivalent to "help command". + + Fixed calc command line usage message. + + Fixed missing README.src file in RPM src and tgz src tarball. + + Removed HAVE_SNPRINTF test in version.c. We now assume that + all systems come with the standard snprintf() library function. + + Make does not assume that DONT_HAVE_VSPRINTF must be defined in + order to test for varargs (via have_varvs.c). Instead it uses the + ${HAVE_VSPRINTF} to determine if the vsprintf() and vsnprintf() + should be tested to assumed to exist or not exist. + + Tests for the existence of vsprintf() now also require the existence + of vsnprintf(). Test for the existence of vsnprintf() now also + require the existence of vsprintf(). + + The #define CALC_SIZE_T was never used except when memmove() was + not found. This symbol was renamed to MEMMOVE_SIZE_T. Calc + requires that size_t must be a known type. + + Calc and cscripts are installed mode 0755 instead of 0555 to + make rpmlint happy. + + +The following are the changes from calc version 2.12.1.6 to 2.12.1.7: + + Added the calc builtin function, usertime(), to return the amount of + user CPU time used by the current process. Unlike the old runtime() + builtin, the CPU time reported for long running processes will not + wrap around to 0 after only a few months. + + Added the calc builtin function, systime(), to return the amount of + kernel CPU time used by the current process. + + The runtime() builtin function now returns the total amount of CPU + time used by the current process. This time includes both user mode + and kernel mode time. Unlike the old runtime() builtin, the builtin + includes time spent executing operating system code on behalf of + the current process. + + Fixed runtime() so that the CPU time reported for long running + processes will wrap around to 0 for a long time. + + Added config("hz") to return the clock tick rate. This is + a read-only configuration value. + + Added regression tests for recently added config() parameters. + + Fixed the #define symbols that were created in have_strdup.h. + Previously this file looked as if have_rusage.h has been + included already. + + Restored the function of "help" (without any args) printing the + default help file. Thanks for this fix goes to Silvan Minghetti + . + + Fixed a problem where some old MS environments failed some of the + regression tests because "read -once foo.cal" was not behaving + correctly due to how the _fullpath() was being called. Thanks for + this fix goes to Anatoly . + + Documented the mis-feature about how calc parses if, for, while + and do statements in an unexpected way. For example: + + This works as expected: + + if (expr) { + ... + } + + However this WILL NOT WORK AS EXPECTED: + + if (expr) + { + ... + } + + because calc will parse the if being terminated by + an empty statement followed by a + + if (expr) ; + { + ... + } + + See also "help statement", "help unexpected", "help todo", and + "help bugs". + + +The following are the changes from calc version 2.12.1 to 2.12.1.5: Fixed minor typos in the 'version 2.12.0 to 2.12.0.8' section below. Made minor formatting changes as well. @@ -10,7 +232,7 @@ Removed the ECHO_PROG Makefile variable. Also removed it from the sysinfo() custom function. - Improved the support for cross-compiled environmens by using + Improved the support for cross-compiled environments by using make symbols for all non-shell commands executed by Makefiles. Fixed a problem with the make chk awk script which failed under @@ -2581,8 +2803,6 @@ into a single section. - - The following are the changes from calc version 2.10.3t5.34 to 2.10.3t5.37: Per request from David I Bell, the README line: @@ -6216,8 +6436,8 @@ ## received a copy with calc; if not, write to Free Software Foundation, Inc. ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. ## -## @(#) $Revision: 29.90 $ -## @(#) $Id: CHANGES,v 29.90 2006/09/18 13:14:03 chongo Exp $ +## @(#) $Revision: 29.102 $ +## @(#) $Id: CHANGES,v 29.102 2007/02/18 14:45:46 chongo Exp $ ## @(#) $Source: /usr/local/src/cmd/calc/RCS/CHANGES,v $ ## ## Under source code control: 1993/06/02 18:12:57