Hello community, here is the log from the commit of package calc for openSUSE:Factory checked in at 2018-04-11 13:56:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/calc (Old) and /work/SRC/openSUSE:Factory/.calc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "calc" Wed Apr 11 13:56:42 2018 rev:15 rq:594242 version:2.12.6.7 Changes: -------- --- /work/SRC/openSUSE:Factory/calc/calc.changes 2018-01-20 11:27:28.338240509 +0100 +++ /work/SRC/openSUSE:Factory/.calc.new/calc.changes 2018-04-11 13:56:44.990172716 +0200 @@ -1,0 +2,12 @@ +Thu Mar 29 13:34:22 UTC 2018 - d...@opensuse.org + +- update to 2.12.6.7 + + various fixes and improvements (e.g. inputbuffer length) + +------------------------------------------------------------------- +Tue Jan 30 13:26:53 UTC 2018 - d...@opensuse.org + +- update to 2.12.6.5 +- drop upstreamed calc-qmath-sequence-point.patch + +------------------------------------------------------------------- Old: ---- calc-2.12.6.4.tar.bz2 calc-qmath-sequence-point.patch what-is-calc New: ---- calc-2.12.6.7.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ calc.spec ++++++ --- /var/tmp/diff_new_pack.bofElC/_old 2018-04-11 13:56:45.718146392 +0200 +++ /var/tmp/diff_new_pack.bofElC/_new 2018-04-11 13:56:45.722146247 +0200 @@ -19,7 +19,7 @@ %define soname 2 %define libname libcalc%{soname} Name: calc -Version: 2.12.6.4 +Version: 2.12.6.7 Release: 0 Summary: C-style arbitrary precision calculator License: LGPL-2.1 @@ -29,10 +29,6 @@ Source1: http://www.isthe.com/chongo/src/calc/checksum.sha-256 Source2: README.openSUSE Source3: calc-rpmlintrc -Source10: http://www.isthe.com/chongo/src/calc/what-is-calc -# patch to replace a macro possibly dereferencing an undefined value -# by an inline-function -Patch0: %{name}-qmath-sequence-point.patch BuildRequires: fdupes BuildRequires: ncurses-devel >= 5.5 BuildRequires: readline-devel >= 5.1 @@ -76,10 +72,8 @@ sed 's/[[:space:]]\+/ /' | sha256sum -c - || exit 23; ) %setup -q -%patch0 -p1 cp "%{SOURCE2}" . -cp "%{SOURCE10}" what-is-calc.txt sed -i '/${CC} ${LIBCUSTCALC_SHLIB} ${CUSTCALC_OBJ}/a\ \tln -s $@ libcustcalc.so @@ -120,6 +114,7 @@ README.FIRST README.md README.openSUSE \ custom/CUSTOM_CAL custom/HOW_TO_ADD \ %{buildroot}%{_docdir}/%{name}/ + # create symlinks to the help-dir for the help command, e.g. "help bugs" ln -sf %{_docdir}/%{name}/COPYING \ %{buildroot}%{_datadir}/%{name}/help/COPYING @@ -138,6 +133,10 @@ ln -sf %{_docdir}/%{name}/HOW_TO_ADD \ %{buildroot}%{_datadir}/%{name}/help/new_custom +# add symlink to intro to docdir +ln -sf %{_datadir}/%{name}/help/intro \ + %{buildroot}%{_docdir}/%{name}/what-is-calc.txt + %fdupes %{buildroot} %post -n %{libname} -p /sbin/ldconfig @@ -152,7 +151,7 @@ %{_bindir}/%{name} %{_datadir}/%{name} %doc %{_mandir}/man1/%{name}.1.gz -%doc what-is-calc.txt +%doc %{_docdir}/%{name}/what-is-calc.txt %files -n %{libname} %defattr(-,root,root) ++++++ calc-2.12.6.4.tar.bz2 -> calc-2.12.6.7.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/CHANGES new/calc-2.12.6.7/CHANGES --- old/calc-2.12.6.4/CHANGES 2018-01-15 02:10:16.000000000 +0100 +++ new/calc-2.12.6.7/CHANGES 2018-03-04 20:04:51.000000000 +0100 @@ -1,4 +1,44 @@ -The following are the changes from calc version 2.12.6.1 to date: +The following are the changes from calc version 2.12.6.6 to date: + + For historical purposes, in lucas.cal, gen_v1(1, n) always returns 4. + + Fixed some compiler warnings, thanks to a report by Mike + <michael dot d dot ince at gmail dot com>. + + Added work around for a gcc warning bug, thanks to a report by Mike + <michael dot d dot ince at gmail dot com>. + + Fixed errors in various help files such as: + + mat randbit seed srandom types + + Removed the MAXSTRING symbol because it was no longer used by calc. + + Increased HIST_SIZE (depth of the history stack) from 10k to 32k. + + Increased TTYSIZE (reallocation size for terminal buffers) from 100 to 8191. + + Increased MAXDEPTH (maximum depth of input stack) from 10 to 255. + + Increased interactive input buffer size from 1024 to 256k. This has the + effect of increasing the maximum length of an input line from a tty. + This helps with an interactive bug that was reported by Ruslan Kabatsayev + (b7 dot 10110111 at gmail dot com). + + +The following are the changes from calc version 2.12.6.4 to 2.12.6.5: + + Fixed warning about undefined operations involving the qlink(q) + macro by replacing that macro with an inline-function. Thanks goes + to David Haller <dnh at opensuse dot org> for this fix. + + NOTE for Windows 10 users: Pavel Nemec <pane at seznam dot cz> + reported that calc version 2.12.6.4 has been successfully + compiled, installed and running on Windows 10. See README.WINDOWS + for more details. + + +The following are the changes from calc version 2.12.6.1 to 2.12.6.3: Improved gen_v1(h,n) in lucas.cal to use an even faster search method. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/Makefile new/calc-2.12.6.7/Makefile --- old/calc-2.12.6.4/Makefile 2018-01-15 01:59:41.000000000 +0100 +++ new/calc-2.12.6.7/Makefile 2018-03-04 19:40:38.000000000 +0100 @@ -1054,7 +1054,7 @@ # The default calc versions # -VERSION= 2.12.6.4 +VERSION= 2.12.6.7 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/Makefile.simple new/calc-2.12.6.7/Makefile.simple --- old/calc-2.12.6.4/Makefile.simple 2018-01-17 00:36:25.000000000 +0100 +++ new/calc-2.12.6.7/Makefile.simple 2018-03-04 20:22:00.000000000 +0100 @@ -981,7 +981,7 @@ # The default calc versions # -VERSION= 2.12.6.4 +VERSION= 2.12.6.7 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/README.WINDOWS new/calc-2.12.6.7/README.WINDOWS --- old/calc-2.12.6.4/README.WINDOWS 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.6.7/README.WINDOWS 2018-01-21 20:41:30.000000000 +0100 @@ -10,6 +10,21 @@ Of course you are welcome to send us any patches that fix your Windoz build environment. + +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +=-= compiling with Windows Subsystem for Linux (WSL) =-Cygwin =-= +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + +It has been reported that calc version 2.12.6.4 has been successfully +compiled, installed and running on Windows 10 on 2018 Jan 21. + +We were told: + + "The Windows Subsystem for Linux (WSL) is a new Windows 10 feature that + enables you to run native Linux command-line tools directly on Windows" + + https://docs.microsoft.com/cs-cz/windows/wsl/about + =-=-=-=-=-=-=-=-=-=-=-=-=-=-= =-= compiling with Cygwin =-= =-=-=-=-=-=-=-=-=-=-=-=-=-=-= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/cal/lucas.cal new/calc-2.12.6.7/cal/lucas.cal --- old/calc-2.12.6.4/cal/lucas.cal 2018-01-17 00:32:40.000000000 +0100 +++ new/calc-2.12.6.7/cal/lucas.cal 2018-01-29 05:11:32.000000000 +0100 @@ -1,7 +1,7 @@ /* * lucas - perform a Lucas primality test on h*2^n-1 * - * Copyright (C) 1999,2017 Landon Curt Noll + * Copyright (C) 1999,2017,2018 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 @@ -374,40 +374,52 @@ } /* + * Verify that h*2^n-1 is not a multiple of 3 + * + * The case for h*2^n-1 == 3 is handled above. + */ + if (((h % 3 == 1) && (n % 2 == 0)) || ((h % 3 == 2) && (n % 2 == 1))) { + /* no need to test h*2^n-1, it is a multiple of 3 */ + ldebug("lucas","not-prime: != 3 and is a multiple of 3"); + return 0; + } + + /* * Avoid any numbers divisible by small primes */ /* - * check for 3 <= prime factors < 29 - * pfact(28)/2 = 111546435 + * check for 5 <= prime factors < 31 + * pfact(30)/6 = 1078282205 */ testval = h*2^n - 1; - if (gcd(testval, 111546435) > 1) { - /* a small 3 <= prime < 29 divides h*2^n-1 */ - ldebug("lucas","not-prime: 3<=prime<29 divides h*2^n-1"); + if (gcd(testval, 1078282205) > 1) { + /* a small 5 <= prime < 31 divides h*2^n-1 */ + ldebug("lucas",\ + "not-prime: a small 5<=prime<31 divides h*2^n-1"); return 0; } /* - * check for 29 <= prime factors < 47 - * pfact(46)/pfact(28) = 5864229 + * check for 31 <= prime factors < 53 + * pfact(52)/pfact(30) = 95041567 */ - if (gcd(testval, 58642669) > 1) { - /* a small 29 <= prime < 47 divides h*2^n-1 */ - ldebug("lucas","not-prime: 29<=prime<47 divides h*2^n-1"); + if (gcd(testval, 95041567) > 1) { + /* a small 31 <= prime < 53 divides h*2^n-1 */ + ldebug("lucas","not-prime: 31<=prime<53 divides h*2^n-1"); return 0; } /* - * check for prime 47 <= factors < 257, if h*2^n-1 is large - * 2^282 > pfact(256)/pfact(46) > 2^281 + * check for prime 53 <= factors < 257, if h*2^n-1 is large + * 2^276 > pfact(256)/pfact(52) > 2^275 */ bits = highbit(testval); - if (bits >= 281) { + if (bits >= 275) { if (pprod256 <= 0) { - pprod256 = pfact(256)/pfact(46); + pprod256 = pfact(256)/pfact(52); } if (gcd(testval, pprod256) > 1) { - /* a small 47 <= prime < 257 divides h*2^n-1 */ + /* a small 53 <= prime < 257 divides h*2^n-1 */ ldebug("lucas",\ - "not-prime: 47<=prime<257 divides h*2^n-1"); + "not-prime: 53<=prime<257 divides h*2^n-1"); return 0; } } @@ -423,7 +435,9 @@ * generate a test for h*2^n-1. The legacy function, * legacy_gen_v1() used by the Amdahl 6 could have returned * -1. The new gen_v1() based on the method outlined in Ref4 - * will never return -1. + * will never return -1 if h*2^n-1 is not a multiple of 3. + * Because the "multiple of 3" case is handled above, the + * call below to gen_v1() will never return -1. */ v1 = gen_v1(h, n); if (v1 < 0) { @@ -1173,6 +1187,26 @@ } /* + * Common Mersenne number case: + * + * For Mersenne numbers: + * + * 2^n-1 + * + * we can use, 40% of the time, v(1) == 3. However nearly all code that + * implements the Lucas-Lehmer test uses v(1) == 4. Whenever for + * h != 0 mod 3, and particular the Mersenne number case of when h == 1: + * + * 1*2^n-1 + * + * v(1) == 4 always works. For this reason, we return 4 when h == 1. + */ + if (h == 1) { + /* v(1) == 4 always works for the Mersenne number case */ + return 4; + } + + /* * check for Case 1: (h mod 3 != 0) */ if (h % 3 != 0) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/calc.c new/calc-2.12.6.7/calc.c --- old/calc-2.12.6.4/calc.c 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.6.7/calc.c 2018-02-28 01:15:38.000000000 +0100 @@ -104,6 +104,8 @@ int c; /* option */ int index; int maxindex; + /* fix gcc warning bug */ + int unusedint = 0; char *cp; char *endcp; char *bp; @@ -278,7 +280,9 @@ exit(6); } calc_debug = cp; - (void) strtol(cp, &endcp, 10); + /* fix gcc warning bug */ + unusedint = + strtol(cp, &endcp, 10); cp = endcp; if (*cp != '\0' && *cp != ' ' && *cp != ':') { @@ -310,7 +314,9 @@ exit(9); } resource_debug = cp; - (void) strtol(cp, &endcp, 10); + /* fix gcc warning bug */ + unusedint = + strtol(cp, &endcp, 10); cp = endcp; if (*cp != '\0' && *cp != ' ' && *cp != ':') { @@ -340,7 +346,8 @@ exit(12); } user_debug = cp; - (void) strtol(cp, &endcp, 10); + /* unusedint avoids gcc warning bug */ + unusedint = strtol(cp, &endcp, 10); cp = endcp; if (*cp != '\0' && *cp != ' ') { fprintf(stderr, "Bad syntax in" @@ -721,8 +728,10 @@ printf("main: run_state = %s\n", run_state_name(run_state)); /* - * all done + * All done! - Jessica Noll, Age 2 */ + /* fix gcc warning bug */ + unusedint++; libcalc_call_me_last(); return (run_state == RUN_EXIT_WITH_ERROR || run_state == RUN_ZERO) ? 1 : 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/calc.h new/calc-2.12.6.7/calc.h --- old/calc-2.12.6.4/calc.h 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.6.7/calc.h 2018-03-04 19:34:17.000000000 +0100 @@ -65,7 +65,6 @@ #define SYMBOLSIZE 256 /* maximum symbol name size */ #define MAXLABELS 100 /* maximum number of user labels in function */ -#define MAXSTRING 1024 /* maximum size of string constant */ #define MAXSTACK 2048 /* maximum depth of evaluation stack */ #define MAXFILES 20 /* maximum number of opened files */ #define PROMPT1 "> " /* default normal prompt*/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/custom/Makefile new/calc-2.12.6.7/custom/Makefile --- old/calc-2.12.6.4/custom/Makefile 2018-01-17 00:35:36.000000000 +0100 +++ new/calc-2.12.6.7/custom/Makefile 2018-03-04 20:21:16.000000000 +0100 @@ -348,7 +348,7 @@ # The default calc versions # -VERSION= 2.12.6.4 +VERSION= 2.12.6.7 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/custom/Makefile.head new/calc-2.12.6.7/custom/Makefile.head --- old/calc-2.12.6.4/custom/Makefile.head 2017-10-03 05:38:35.000000000 +0200 +++ new/calc-2.12.6.7/custom/Makefile.head 2018-03-04 19:40:38.000000000 +0100 @@ -348,7 +348,7 @@ # The default calc versions # -VERSION= 2.12.6.4 +VERSION= 2.12.6.7 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/custom/Makefile.simple new/calc-2.12.6.7/custom/Makefile.simple --- old/calc-2.12.6.4/custom/Makefile.simple 2018-01-17 00:36:25.000000000 +0100 +++ new/calc-2.12.6.7/custom/Makefile.simple 2018-03-04 20:22:00.000000000 +0100 @@ -333,7 +333,7 @@ # The default calc versions # -VERSION= 2.12.6.4 +VERSION= 2.12.6.7 # Names of shared libraries with versions # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/custom/c_sysinfo.c new/calc-2.12.6.7/custom/c_sysinfo.c --- old/calc-2.12.6.4/custom/c_sysinfo.c 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.6.7/custom/c_sysinfo.c 2018-03-04 19:34:12.000000000 +0100 @@ -173,8 +173,6 @@ (FULL)MAXSCANCOUNT}, {"MAXSTACK", "max depth of evaluation stack", NULL, (FULL)MAXSTACK}, - {"MAXSTRING", "max size of string constant", NULL, - (FULL)MAXSTRING}, {"MAXUFULL", "largest FULL value", NULL, (FULL)MAXUFULL}, {"MAXULONG", "largest unsigned long val", NULL, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/help/mat new/calc-2.12.6.7/help/mat --- old/calc-2.12.6.4/help/mat 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.6.7/help/mat 2018-02-28 02:35:07.000000000 +0100 @@ -54,13 +54,13 @@ The elements of the matrix are stored internally as a linear array in which locations are arranged in order of increasing indices. For example, in order of location, the six element of A = mat [2,3] - are + are: - A[0,0], A[0,1], A[0,2], A[1,0], A[1,,1], A[1,2]. + A[0,0], A[0,1], A[0,2], A[1,0], A[1,1], and A[1,2]. These elements may also be specified using the double-bracket operator with a single integer index as in A[[0]], A[[1]], ..., A[[5]]. - If p is assigned the value &A[0.0], the address of A[[i]] for 0 <= i < 6 + If p is assigned the value &A[0,0], the address of A[[i]] for 0 <= i < 6 is p + i as long as A exists and a new value is not assigned to A. When a matrix is created, each element is initially assigned the @@ -414,7 +414,7 @@ det, inverse, isident, test, config, search, rsearch, reverse, copy, blkcpy, dp, cp, randperm, sort -## Copyright (C) 1999-2006 Landon Curt Noll +## Copyright (C) 1999-2006,2018 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 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/help/randbit new/calc-2.12.6.7/help/randbit --- old/calc-2.12.6.4/help/randbit 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.6.7/help/randbit 2018-02-28 03:16:10.000000000 +0100 @@ -1,5 +1,5 @@ NAME - randbit - additive 55 shuffle pseudo-random number generator + randbit - subtractive 100 shuffle pseudo-random number generator SYNOPSIS randbit([x]) @@ -42,7 +42,7 @@ SEE ALSO seed, srand, randbit, isrand, random, srandom, israndom -## Copyright (C) 1999 Landon Curt Noll +## Copyright (C) 1999,2018 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 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/help/seed new/calc-2.12.6.7/help/seed --- old/calc-2.12.6.4/help/seed 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.6.7/help/seed 2018-02-28 03:15:02.000000000 +0100 @@ -18,14 +18,7 @@ It should be pointed out that the information collected by seed is almost certainly non-chaotic. This function is likely not suitable for applications (such as cryptographic applications) - where the unpredictability of seeds is critical. For such critical - applications, LavaRnd should be used. See the URL: - - http://www.LavaRnd.org/ - - for information about seeding a pseudo-random number generator - (such as rand() or random()) with the cryptographic hash of the - digitization of chaotic system. + where the unpredictability of seeds is critical. Given the above warning, this builtin function produces a seed that is suitable for most applications that desire a different pseudo-random @@ -51,7 +44,7 @@ SEE ALSO seed, srand, randbit, isrand, rand, random, srandom, israndom -## Copyright (C) 1999 Landon Curt Noll +## Copyright (C) 1999,2018 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 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/help/srandom new/calc-2.12.6.7/help/srandom --- old/calc-2.12.6.4/help/srandom 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.6.7/help/srandom 2018-02-28 03:07:57.000000000 +0100 @@ -332,13 +332,13 @@ iq >= 2^16 LINK LIBRARY - RAND *zsrandom(ZVALUE *pseed, MATRIX *pmat55) - RAND *zsetrandom(RAND *state) + RANDOM *zsrandom(ZVALUE *pseed, MATRIX *pmat55) + RANDOM *zsetrandom(RAND *state) SEE ALSO seed, srand, randbit, isrand, random, srandom, israndom -## Copyright (C) 1999 Landon Curt Noll +## Copyright (C) 1999,2018 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 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/help/types new/calc-2.12.6.7/help/types --- old/calc-2.12.6.4/help/types 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.6.7/help/types 2018-02-28 03:20:02.000000000 +0100 @@ -1,6 +1,6 @@ Builtin types - The calculator has the following built-in types. + The calculator has the following built-in types: null value This is the undefined value type. The function 'null' @@ -101,7 +101,20 @@ using the result of the 'files' function. Such copies are indistinguishable from each other. -## Copyright (C) 1999 Landon Curt Noll + The calculator also has a number of special types that as used + by some special builtin functions: + + rand + A subtractive 100 shuffle pseudo-random number generator + state. This state is used by functions such as isrand() + and srand(). + + random + A Blum-Blum-Shub pseudo-random number generator state. + This state is used by functions such as israndom() and + srandom(). + +## Copyright (C) 1999,2018 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 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/hist.h new/calc-2.12.6.7/hist.h --- old/calc-2.12.6.4/hist.h 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.6.7/hist.h 2018-03-04 19:44:37.000000000 +0100 @@ -36,7 +36,7 @@ #endif #ifndef HIST_SIZE -#define HIST_SIZE (1024*10) +#define HIST_SIZE (1024*32) #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/input.c new/calc-2.12.6.7/input.c --- old/calc-2.12.6.4/input.c 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.6.7/input.c 2018-03-04 19:47:33.000000000 +0100 @@ -59,8 +59,8 @@ E_FUNC FILE *curstream(void); -#define TTYSIZE 100 /* reallocation size for terminal buffers */ -#define MAXDEPTH 10 /* maximum depth of input */ +#define TTYSIZE 8191 /* reallocation size for terminal buffers */ +#define MAXDEPTH 255 /* maximum depth of input */ #define IS_READ 1 /* reading normally */ #define IS_REREAD 2 /* reread current character */ #define chartoint(ch) ((ch) & 0xff) /* make sure char is not negative */ @@ -789,7 +789,7 @@ { int ch; /* current char */ int len; /* length of current command */ - STATIC char charbuf[1024]; + STATIC char charbuf[256*1024]; /* * If we have more to read from the saved command line, then do that. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/qmath.h new/calc-2.12.6.7/qmath.h --- old/calc-2.12.6.4/qmath.h 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.6.7/qmath.h 2018-01-18 23:20:07.000000000 +0100 @@ -254,7 +254,9 @@ #define qhighbit(q) (zhighbit((q)->num)) #define qlowbit(q) (zlowbit((q)->num)) #define qdivcount(q1, q2) (zdivcount((q1)->num, (q2)->num)) -#define qlink(q) ((q)->links++, (q)) +/* operation on #q may be undefined, so replace with an inline-function */ +/* was: #define qlink(q) ((q)->links++, (q)) */ +static inline NUMBER* qlink(NUMBER* q) { if(q) { (q)->links++; } return q; } #define qfree(q) {if (--((q)->links) <= 0) qfreenum(q);} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/value.c new/calc-2.12.6.7/value.c --- old/calc-2.12.6.4/value.c 2017-06-02 23:50:17.000000000 +0200 +++ new/calc-2.12.6.7/value.c 2018-02-05 21:56:19.000000000 +0100 @@ -2944,7 +2944,7 @@ bp = vp->v_nblock->blk; } i = bp->datalen; - math_fmt("%ld,%d)", i, bp->blkchunk); + math_fmt("%ld,%d)", i, (int) bp->blkchunk); cp = bp->data; if (i > 0) { math_str("={"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calc-2.12.6.4/version.c new/calc-2.12.6.7/version.c --- old/calc-2.12.6.4/version.c 2017-09-07 03:28:48.000000000 +0200 +++ new/calc-2.12.6.7/version.c 2018-03-04 19:40:36.000000000 +0100 @@ -45,7 +45,7 @@ #define MAJOR_VER 2 /* major library version */ #define MINOR_VER 12 /* minor library version */ #define MAJOR_PATCH 6 /* major software level under library version */ -#define MINOR_PATCH 4 /* minor software level or 0 if not patched */ +#define MINOR_PATCH 7 /* minor software level or 0 if not patched */ /* ++++++ checksum.sha-256 ++++++ --- /var/tmp/diff_new_pack.bofElC/_old 2018-04-11 13:56:46.326124408 +0200 +++ /var/tmp/diff_new_pack.bofElC/_new 2018-04-11 13:56:46.330124263 +0200 @@ -19,13 +19,28 @@ a3a78424ed678ccc8082de460daa99c44d19d6e2552f488a31245eed1a532a35 calc-2.12.6.4-12.src.rpm a252b277fb7f437ad454b5d4e1ad65f34d31fad7df7ed21380d7ccf72be9d979 calc-2.12.6.4-12.x86_64.rpm bbe27ca48eb315c1785333fcecf0c1ebbdc8a255507b1bf42e3abc751458cb07 calc-2.12.6.4.tar.bz2 +9e911442d8bfd59e7ef956547945f4e12bcdb800e1bce285770e813a7fdd6bb5 calc-2.12.6.5-12.src.rpm +0d640aff8513d66fbe266b80cf165fd0bf4da5419dfc5556f7f73cb3b7df51c3 calc-2.12.6.5-12.x86_64.rpm +4e79a4e4615b92c1d8533e9ab4fdaca95715aaed45405c29daa886f8a1236733 calc-2.12.6.5.tar.bz2 +f3b39407a4dba9c2bb208214d49b7d3b4b35815f02f90cea0ffd2d343e67482c calc-2.12.6.6-12.src.rpm +e011921f5459bb03be02d8d93edbd225e8682a2794dad36884cdf3089784b229 calc-2.12.6.6-12.x86_64.rpm +a525c695039adc6bc925126664a40f9f22fe6b35c9312dd0cf1a1b1b610f4f0f calc-2.12.6.6.tar.bz2 +9df50741dc45a8233509c06c0545eeb59ac2efcb57a88bea87d6f8d3cbdcb460 calc-2.12.6.7-12.src.rpm +65a24d18e6f0e6a141904bf22c2da7f269314d45569288120a5eb8a2eceb1b4b calc-2.12.6.7-12.x86_64.rpm +3a4f1acde15941048214f393beb97f9e12fc1ef2585fe0ab026e93ebcd19dd46 calc-2.12.6.7.tar.bz2 befb1ef348704f0c4c0a5ebf55b57acf6fa75119e3c8c267379814980ae70e83 calc-debuginfo-2.12.5.6-12.x86_64.rpm 83c7f2728496692f19bab7c957ba9867ed436f5048d595883831b7fdf9db0d31 calc-debuginfo-2.12.6.0-12.x86_64.rpm e9aac5102f90ec81f8a3ec0d476d6cd89dc44f43823cff4f9415b10e076e8791 calc-debuginfo-2.12.6.1-12.x86_64.rpm 6a76d9c3fa42c2ccbbcfbc0c6f65f55abb8b7726846950618b291393d8139fd9 calc-debuginfo-2.12.6.3-12.x86_64.rpm 395945a90220f9e0e76b934bfb513e774c8fbda6ed180961c1febd9c1cf94cf6 calc-debuginfo-2.12.6.4-12.x86_64.rpm +eeeb978b5741573369d64e80f5d656b0fa69bfd477ed64535f8c77525af98e60 calc-debuginfo-2.12.6.5-12.x86_64.rpm +41a261ba48b8e1185cbceff6613fecfa5dde78bf2f92d8ffc7c85a4ffa0f6457 calc-debuginfo-2.12.6.6-12.x86_64.rpm +538c14d02ae94243ee678a93d92893df39d11ad317c28573d9a9710388b10e81 calc-debuginfo-2.12.6.7-12.x86_64.rpm 91949fd27a789eab99817d93d1e4f12424948bb4910f0a23755cab5fed2fb658 calc-devel-2.12.5.6-12.x86_64.rpm e79286c4b40913bdac87759dc5bf50b616af68c6fbda3c53c7703d66e311b9fa calc-devel-2.12.6.0-12.x86_64.rpm 97f16cf48b519285f6c8d10f64e56ac5aa4a50f7bfed82b57d2f711482c30930 calc-devel-2.12.6.1-12.x86_64.rpm bc458c4bd50d5215ec2f6df01fb1f11e8270577f51c581d087fda42b68ebbcd3 calc-devel-2.12.6.3-12.x86_64.rpm 13e053525fcf8752a96ea306a3b7aa037a019afb224577916d7f7c9cee14a40c calc-devel-2.12.6.4-12.x86_64.rpm +79be5cb9df2f56cb4e90e2fe0d7936e4e1cada96c575beac9c9160917b2c87c4 calc-devel-2.12.6.5-12.x86_64.rpm +00ba5e70442ca62e3768ebb7b4cc22216c1c99c63f99b36faccf6aaafc751d50 calc-devel-2.12.6.6-12.x86_64.rpm +40f9a9bebcc71978579b1d5d8f75a8282e41fadbc43ede097f86ec51b6bb619a calc-devel-2.12.6.7-12.x86_64.rpm