114 Commits

Author SHA256 Message Date
02f9673279 Accepting request 1328226 from utilities
- Update to 2.16.1.2:
  * Fixed a bug where the calc command history was not being properly
    saved in the history file.  Thanks go to the GitHub user @Vekhir
    for both reporting this problem and helping come up with a solution.
  * Per request, we expanded number of entries to save from 1024 to 4096.

- Update to 2.16.1.1:
  * Fix compiler warning for `custom/u_pfe.c`.
  * Update the `ARCH_CFLAGS` make symbol comments in `Makefile.config`.
  * Add `ARCH_CFLAGS` to `COMMON_CFLAGS` in `Makefile.config`.
  * Add "RHEL (Linux) Address Sanitizer (ASAN) for i686" commented out
    section to `Makefile.local`.
  * Improve comments in `Makefile.local` related to "Address Sanitizer (ASAN)".
  * Add `junk4200` to `.gitignore`.
  * Use `-${Q}` instead of `-@` while build hsrc files in `Makefile`.
  * Fix `pseudo_seed()` in `seed.c` to handle 32-bit architectures.
  * Fixed `reopenid()` in `file.c` to handle 32-bit architectures and
    to avoid "glibc detected an invalid stdio handle" using `freopen(3)`.
  * Fixed bug in `c_power()` in `comfunc.c` that caused 32-bit
    architectures to dump core.
  * Fixed bug in `zrandom()` in `zrandom.c` where results from a
    Blum-Blum-Shub operation were incorrectly copied into a ZVALUE
    for 32-bit architectures.
  * Fixed comment typo in `cal/regress.cal` before test 5305.

- Update to 2.16.1.0:
  * Added a new `.clang-format` file as the basis for using the
    `clang-format(1)` tool to format calc source in a consistent way.
    This code re-formatting will make it easier to work in calc v3 code
    changes in the future by making the calc source much more consistent.

OBS-URL: https://build.opensuse.org/request/show/1328226
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=44
2026-01-20 20:05:06 +00:00
9fc5bc60f0 - Update to 2.16.1.2:
* Fixed a bug where the calc command history was not being properly
    saved in the history file.  Thanks go to the GitHub user @Vekhir
    for both reporting this problem and helping come up with a solution.
  * Per request, we expanded number of entries to save from 1024 to 4096.

- Update to 2.16.1.1:
  * Fix compiler warning for `custom/u_pfe.c`.
  * Update the `ARCH_CFLAGS` make symbol comments in `Makefile.config`.
  * Add `ARCH_CFLAGS` to `COMMON_CFLAGS` in `Makefile.config`.
  * Add "RHEL (Linux) Address Sanitizer (ASAN) for i686" commented out
    section to `Makefile.local`.
  * Improve comments in `Makefile.local` related to "Address Sanitizer (ASAN)".
  * Add `junk4200` to `.gitignore`.
  * Use `-${Q}` instead of `-@` while build hsrc files in `Makefile`.
  * Fix `pseudo_seed()` in `seed.c` to handle 32-bit architectures.
  * Fixed `reopenid()` in `file.c` to handle 32-bit architectures and
    to avoid "glibc detected an invalid stdio handle" using `freopen(3)`.
  * Fixed bug in `c_power()` in `comfunc.c` that caused 32-bit
    architectures to dump core.
  * Fixed bug in `zrandom()` in `zrandom.c` where results from a
    Blum-Blum-Shub operation were incorrectly copied into a ZVALUE
    for 32-bit architectures.
  * Fixed comment typo in `cal/regress.cal` before test 5305.

- Update to 2.16.1.0:
  * Added a new `.clang-format` file as the basis for using the
    `clang-format(1)` tool to format calc source in a consistent way.
    This code re-formatting will make it easier to work in calc v3 code
    changes in the future by making the calc source much more consistent.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=106
2026-01-20 10:03:40 +00:00
5408092592 Accepting request 1301218 from utilities
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1301218
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=43
2025-08-25 18:39:02 +00:00
0a49d100a6 - Update to 2.16.0.0:
* Starting with calc version 2.16.0.0, the ability to perform arithmetic
    on addresses of values in calc objects has been greatly restricted.
  * Most arithmetic on of value addresses could easily cause calc to
    crash.  For example, prior to calc version 2.16.0.0, the following
    command was likely to crash calc: calc '*((&.)+1e9)'
  * Subtracting two value addresses is permitted, however there is NO
    guarantee that the address of a value will remain consistent across
    calc runs.  Addresses of values depend on the circumstances of when
    the calc values were formed.
  * The above restrictions and caveats apply to addresses of values.
    Such restrictions and caveats to NOT apply to the addresses of
    octets, NOR to the addresses within strings.  If isptr(x) == 2, then
    x is value-pointer and the above mentioned restrictions and caveats apply.
  * See "help address" for more information on value address arithmetic.
  * Added E_INVALID_DEREF (10610) error code to indicate the invalid
    dereferencing a non-variable.
  * Added E_INVALID_ADDR_OP (10611) error code to indicate an invalid
    arithmetic address operation.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=104
2025-08-18 07:46:15 +00:00
55d46f745f - Update to 2.15.1.2:
* Removed use of HAVE_MEMMOVE as well have_memmv.c.
  * Removed the building and including of have_memmv.h.
  * Removed the memmove() function in blkcpy.c, used when HAVE_MEMMOVE was NOT defined.
  * The libc memmove(3) function as defined by <string.h> is now
    required to compile calc because the replacement code in
    blkcpy.c q was problematic, especially when regions overlap.
  * The HAVE_MEMMOVE make symbol was removed from Makefile.config.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=103
2025-08-14 05:34:43 +00:00
1b89b164b3 - Update to 2.15.1.1:
* Change Makefile.config to, if not using not HomeBrew, then try to
    detect macports and/or using /opt/local/{lib,include}.
  * Put full date range (1989-2025) of calc source into version.h.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=102
2025-04-25 13:35:39 +00:00
3a527f7b62 Accepting request 1226199 from utilities
OBS-URL: https://build.opensuse.org/request/show/1226199
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=42
2024-11-25 22:21:50 +00:00
fe50a2a450 - Workaorund %attr(644…) setting this attribute also on the doc
directory if this is the first statement to copy docs over. The
  intention was clearly to set the files non-executable. Simply
  letting RPM copy the correct doc files first, using default
  attributes, results in the doc-dir having proper access modes.

Fixes that weird build error in Factory

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=100
2024-11-25 08:24:21 +00:00
521e631893 - Update to 2.15.1.0:
* Converted all ASCII tabs to ASCII spaces using a 8 character
    tab stop, for all files, except for all Makefiles (plus rpm.mk).
    The command `git diff -w` reports no changes.  There is no
    functionality change in calc: only ASCII tabs to ASCII spaces.
  * Fixed trailblank.  It was pruning . in its find search.
  * Added check for ASCII tabs is non-Makefiles.
  * This version will form the basis for the calc v2 to calc v3 fork.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=99
2024-07-12 07:03:44 +00:00
2dc34209dd - Update to 2.15.0.7:
Fix bug regarding log2(x) #148

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=98
2024-05-29 05:05:19 +00:00
86e67ba632 - Update to 2.15.0.6:
* A long standing memory leak in zrandom.c has been fixed.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=97
2024-02-13 06:51:23 +00:00
b0ee0008e7 - Update to 2.15.0.5:
* make clobber now removes the legacy files: have_fpos.h, help/man,
    and help/usage.  The latter 2 are now managed as help aliases
    in help.c.
  * make install now removes the legacy files: ${HELPDIR}/man
    and ${HELPDIR}/usage.
  * Fixed a problem where, when calc was linked with and uses GNU
    readline then for any multi-line copy-and-paste, only the first
    line is executed.  Thanks to GitHub user @malfisya for reporting
    this problem, and thanks to GitHub user @gromit1811 for doing
    the research needed to overcome deficiencies in the GNU readline
    documentation, and for supplying the work-a-round to allow
    multi-line copy-and-paste to work as expected!

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=96
2024-02-02 11:46:59 +00:00
a816528cfc - Update to 2.15.0.4:
* Fixed bug that caused calc to fail to compile filepos2z() in file.c
   on little endian machines for the Debian apcalc package.
  * 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.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=95
2023-12-22 06:57:09 +00:00
409057c2a9 - Update to 2.15.0.2:
* Added ${FSANITIZE} make variable to Makefile.config to hold
    common Address Sanitizer (ASAN) optins to modern Linux and macOS.
    The Address Sanitizer is NOT enabled not compiled in by default.
    Improved comments in Makefile.local for RHEL9.2 (Linux) and for
    macOS 14.0 that, when uncommented and calc is recompiled (i.e.,
    make clobber all) will enable the Address Sanitizer (ASAN) for calc.
  * Fixed memory leaks in the logn, aversin, acoversin, avercos,
    acovercos, ahaversin, ahavercos, ahacovercos, aexsec,
    aexcsc, and acrd.
  * Fixed a compile error in zmath.h that impacted legacy 32-bit Big
    Endian machines.
  * Fixed the check for <sys/mount.h> when forming have_sys_mount.h.
  * Added "STATIC bool blum_initialized = false" to zrandom.c to improve
    how the code detects if the Blum-Blum-Shub pseudo-random number
    generator is seeded or not, and how to free the state correctly.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=94
2023-12-10 14:17:15 +00:00
59faed68ef Accepting request 1115823 from utilities
- Update to 2.15.0.1:
  * The tarball for calc version 2.15.0.0 was missing version.h.
    The version.h is now listed as part of the calc distribution.
    See gh/lcn2/calc#112

- Update to 2.15.0.0:
  * Added the several new trigonometric functions
  * Added log2(x [,eps]) builtin function
  * The sign element in a ZVALUE is now of type SIGN, which is either
    SB32 when MAJOR_VER < 3, or a bool otherwise
  * Added new logn(x, n [,eps]) builtin to compute logarithms to base n.
- Add calc-2.15.0.0-versionh.patch to fix build
  See gh/lcn2/calc#112

- Update to 2.14.3.5:
  * Under macOS, to reduce dependency chains, we remove functions
    and data that are unreachable by the entry point or exported
    symbols.  In particular, the macOS linker is used with both
    "-dead_strip" and "-dead_strip_dylibs".
  * The libcalc shared library is now linked with libcustcalc.

OBS-URL: https://build.opensuse.org/request/show/1115823
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=41
2023-10-05 18:05:16 +00:00
eac0b35aa2 - Update to 2.15.0.1:
* The tarball for calc version 2.15.0.0 was missing version.h.
    The version.h is now listed as part of the calc distribution.
    See gh/lcn2/calc#112

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=92
2023-10-05 12:39:10 +00:00
bed98d0e3c OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=91 2023-10-05 10:15:41 +00:00
b7315a87e5 - Add calc-2.15.0.0-versionh.patch to fix build
See gh/lcn2/calc#112

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=90
2023-10-05 10:05:42 +00:00
b619e43238 - Update to 2.15.0.0:
* Added the several new trigonometric functions
  * Added log2(x [,eps]) builtin function
  * The sign element in a ZVALUE is now of type SIGN, which is either
    SB32 when MAJOR_VER < 3, or a bool otherwise
  * Added new logn(x, n [,eps]) builtin to compute logarithms to base n.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=89
2023-10-04 07:30:36 +00:00
f15d6cee3f - Update to 2.14.3.5:
* Under macOS, to reduce dependency chains, we remove functions
    and data that are unreachable by the entry point or exported
    symbols.  In particular, the macOS linker is used with both
    "-dead_strip" and "-dead_strip_dylibs".
  * The libcalc shared library is now linked with libcustcalc.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=88
2023-08-18 06:34:17 +00:00
eaddf142dd Accepting request 1103979 from utilities
- Update to 2.14.3.4:
  * Fix typo in the make debug Makefile rule.
  * Fix install of statically linked calc under macOS 
  * Update comments in Makefile.local about using -fsanitize
  * Add Makefile.local comments for macOS reduce dependency chains 
  * Fix calc when CUSTOM is undefined, remove PASSDOWN values 
  * Fix use of -dead_strip_dylibs for macOS linker

OBS-URL: https://build.opensuse.org/request/show/1103979
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=40
2023-08-15 14:40:13 +00:00
87cbfd39cb - Update to 2.14.3.4:
* Fix typo in the make debug Makefile rule.
  * Fix install of statically linked calc under macOS 
  * Update comments in Makefile.local about using -fsanitize
  * Add Makefile.local comments for macOS reduce dependency chains 
  * Fix calc when CUSTOM is undefined, remove PASSDOWN values 
  * Fix use of -dead_strip_dylibs for macOS linker

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=86
2023-08-15 06:34:08 +00:00
077d41fcc1 Accepting request 1102112 from utilities
- Update to 2.14.3.0:
  * The Darwin specific ${DARWIN_ARCH}, thay by default was unset,
    is now the ${ARCH_CFLAGS} Makefile variable.  Comments about
    various "-arch name" have been moved to the ${ARCH_CFLAGS} area.
  * Improved the output of the calcinfo rule by adding echos
    of various uname values as well as some top Makefile variables.
  * Fixed the BUGS file with respect to using `make debug`.
  * Added a final ls of `debug.out` for `make debug`.

OBS-URL: https://build.opensuse.org/request/show/1102112
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=39
2023-08-03 15:30:32 +00:00
a194ed326a - Update to 2.14.3.0:
* The Darwin specific ${DARWIN_ARCH}, thay by default was unset,
    is now the ${ARCH_CFLAGS} Makefile variable.  Comments about
    various "-arch name" have been moved to the ${ARCH_CFLAGS} area.
  * Improved the output of the calcinfo rule by adding echos
    of various uname values as well as some top Makefile variables.
  * Fixed the BUGS file with respect to using `make debug`.
  * Added a final ls of `debug.out` for `make debug`.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=84
2023-08-03 06:33:41 +00:00
e44dc745a0 Accepting request 1101458 from utilities
- Update to 2.14.2.2:
  * Removed references to obsolete Email addresses.
  * macOS Darwin defaults LCC to "cc".

OBS-URL: https://build.opensuse.org/request/show/1101458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=38
2023-07-31 13:25:12 +00:00
4bdfff999d - Update to 2.14.2.2:
* Removed references to obsolete Email addresses.
  * macOS Darwin defaults LCC to "cc".

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=82
2023-07-31 06:16:58 +00:00
3b04b03742 Accepting request 1100981 from utilities
- Update to 2.14.2.1:
  * Added cal/fnv_tool.cal, a calc resource file defining:
    find_fnv_prime(bits)
    deprecated_fnv0(bits,fnv_prime,string)
    fnv_offset_basis(bits,fnv_prime)
    fnv1a_style_hash(bits,fnv_prime,prev_hash,string)
  * Fixed sorted order of cal/README.

OBS-URL: https://build.opensuse.org/request/show/1100981
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=37
2023-07-27 14:52:47 +00:00
cb6d4048dc - Update to 2.14.2.1:
* Added cal/fnv_tool.cal, a calc resource file defining:
    find_fnv_prime(bits)
    deprecated_fnv0(bits,fnv_prime,string)
    fnv_offset_basis(bits,fnv_prime)
    fnv1a_style_hash(bits,fnv_prime,prev_hash,string)
  * Fixed sorted order of cal/README.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=80
2023-07-27 06:27:48 +00:00
38584f6fa5 Accepting request 1100578 from utilities
OBS-URL: https://build.opensuse.org/request/show/1100578
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=36
2023-07-26 11:23:50 +00:00
77ccba24f7 Accepting request 1100038 from home:AdaLovelace:branches:utilities
- Update to 2.14.2.0:
  * Ported calc to the s390x IBM Mainframe

OBS-URL: https://build.opensuse.org/request/show/1100038
OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=78
2023-07-25 08:57:16 +00:00
7b6a5205b2 Accepting request 1090155 from utilities
- Update to 2.14.1.6:
  * Fixed version numbers in two cases in CHANGES that referred
    to the 2.14.2.x instead of 2.14.1.x.
  * Rename MINGW Makefile variable (a holdover from MINGW32_NT-5.0)
    to OSNAME.
  * Fixed FUNCPTR typedef in hist.c to fix deprecated compiler warnings.
  * Fixed when USE_READLINE, READLINE_LIB, READLINE_EXTRAS, and
    READLINE_INCLUDE are set to empty (disable use of the GNU-readline
    facility).
  * Fix cases of spaces before tabs in Makefile and Makefile.simple.
  * Fixed obsolete references to the atoz() in LIBRARY to use the
    correct internal function name of str2z().
  * Fixed obsolete references to the atoq() in LIBRARY to use the
    correct internal function name of str2q().
  * Document in help/unexpected that * operator has has a higher
    precedence than << in calc, which differs from C.

OBS-URL: https://build.opensuse.org/request/show/1090155
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=35
2023-06-01 15:19:47 +00:00
2e428ea254 - Update to 2.14.1.6:
* Fixed version numbers in two cases in CHANGES that referred
    to the 2.14.2.x instead of 2.14.1.x.
  * Rename MINGW Makefile variable (a holdover from MINGW32_NT-5.0)
    to OSNAME.
  * Fixed FUNCPTR typedef in hist.c to fix deprecated compiler warnings.
  * Fixed when USE_READLINE, READLINE_LIB, READLINE_EXTRAS, and
    READLINE_INCLUDE are set to empty (disable use of the GNU-readline
    facility).
  * Fix cases of spaces before tabs in Makefile and Makefile.simple.
  * Fixed obsolete references to the atoz() in LIBRARY to use the
    correct internal function name of str2z().
  * Fixed obsolete references to the atoq() in LIBRARY to use the
    correct internal function name of str2q().
  * Document in help/unexpected that * operator has has a higher
    precedence than << in calc, which differs from C.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=76
2023-06-01 06:49:07 +00:00
876c52db1f Accepting request 1071443 from utilities
OBS-URL: https://build.opensuse.org/request/show/1071443
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=34
2023-03-14 17:17:26 +00:00
f6dbd06c53 Accepting request 1071418 from home:polslinux:branches:utilities
- Update to 2.14.1.5:
  * Fixed FUNCPTR typedef in hist.c to fix deprecated compiler warnings.
  * Fixed when USE_READLINE, READLINE_LIB, READLINE_EXTRAS, and
    READLINE_INCLUDE are set to empty (disable use of the GNU-readline
    facility).

OBS-URL: https://build.opensuse.org/request/show/1071418
OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=74
2023-03-14 09:34:02 +00:00
a7d09296c9 Accepting request 1065983 from utilities
- Update to 2.14.1.3:
  * Fixed missing <string.h include in have_fpos_pos.c.
  * Change calc version from 2.14.1.2 to 2.14.2.3 as part of a test to
    build calc RPMs on a reference RHEL8.7 platform (formerly a RHEL7.9
    platform).

OBS-URL: https://build.opensuse.org/request/show/1065983
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=33
2023-02-16 15:55:52 +00:00
c6c11adb33 - Update to 2.14.1.3:
* Fixed missing <string.h include in have_fpos_pos.c.
  * Change calc version from 2.14.1.2 to 2.14.2.3 as part of a test to
    build calc RPMs on a reference RHEL8.7 platform (formerly a RHEL7.9
    platform).

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=72
2023-02-15 14:34:20 +00:00
180cdc328c Accepting request 1039276 from utilities
- Update to 2.14.1.2:
  * Restored use of the #define FPOS_POS_LEN symbol.  This refers to
    the length of the __pos element (if the __pos element exists),
    the fpos_t type (if that type exists).
  * Changed SWAP_HALF_IN_FILEPOS(dest, src) mato to use FILEPOS_LEN Little
    Endian when FILEPOS is a simple scalar type (i.e., HAVE_FILEPOS_SCALAR
    is defined).
  * Changed #define HAVE_FPOS to HAVE_FGETSETPOS.
  * Corrected comment in have_fpos_pos.h.  The HAVE_FPOS_POS symbol was
    NOT related to fgetpos & fsetpos but rather if we we have an __pos
    element in FILEPOS.
  * Changed #define HAVE_NO_FPOS to HAVE_NO_FGETSETPOS.
  * Improved comments in have_fpos_pos.h to show why and how
    HAVE_FPOS_POS, FPOS_POS_BITS, and FPOS_POS_LEN were defined or undefed.
  * Changed showfiles builtin to print sizes cast to (long int) with
    the "%ld" printf format to avoid implementations that do not support
    the "%lld" printf format specifier.
  * Renamed have_fpos.h to have_fgetsetpos.h.  Renamed CALC_HAVE_FPOS_H
    to CALC_HAVE_FGETSETPOS_H.  The make install and the olduninstall
    rules remove the any old have_fpos.h that was previously installed.
  * Added swap_HALFs(dest, src, len) function to byteswap.c.
  * Calc can now handle Big Engian file position sizes that are a
    multiple of BASEB bits in length.  Before handle Big Engian file
    positions could only be 32 and 64 bits in length.  This will allow,
    for example, a Big Engian file position size of 128 (assuming that
    128/BASEB is is an integer).
  * Temporary workaround for musl libc systems such as gentoo Linux that
    allows them to compile calc and successfully run the regression test.
- Update to 2.14.1.1:
  * Added a few remarks on calc version numbers to version.c.
  * Fixed how several headers are built.  On a number of systems, the source
    file failed to compile incorrectly.  This caused problems for systems in
    which header.h.def was not correct.

OBS-URL: https://build.opensuse.org/request/show/1039276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=32
2022-12-01 16:21:31 +00:00
3a470a40ca - Update to 2.14.1.2:
* Restored use of the #define FPOS_POS_LEN symbol.  This refers to
    the length of the __pos element (if the __pos element exists),
    the fpos_t type (if that type exists).
  * Changed SWAP_HALF_IN_FILEPOS(dest, src) mato to use FILEPOS_LEN Little
    Endian when FILEPOS is a simple scalar type (i.e., HAVE_FILEPOS_SCALAR
    is defined).
  * Changed #define HAVE_FPOS to HAVE_FGETSETPOS.
  * Corrected comment in have_fpos_pos.h.  The HAVE_FPOS_POS symbol was
    NOT related to fgetpos & fsetpos but rather if we we have an __pos
    element in FILEPOS.
  * Changed #define HAVE_NO_FPOS to HAVE_NO_FGETSETPOS.
  * Improved comments in have_fpos_pos.h to show why and how
    HAVE_FPOS_POS, FPOS_POS_BITS, and FPOS_POS_LEN were defined or undefed.
  * Changed showfiles builtin to print sizes cast to (long int) with
    the "%ld" printf format to avoid implementations that do not support
    the "%lld" printf format specifier.
  * Renamed have_fpos.h to have_fgetsetpos.h.  Renamed CALC_HAVE_FPOS_H
    to CALC_HAVE_FGETSETPOS_H.  The make install and the olduninstall
    rules remove the any old have_fpos.h that was previously installed.
  * Added swap_HALFs(dest, src, len) function to byteswap.c.
  * Calc can now handle Big Engian file position sizes that are a
    multiple of BASEB bits in length.  Before handle Big Engian file
    positions could only be 32 and 64 bits in length.  This will allow,
    for example, a Big Engian file position size of 128 (assuming that
    128/BASEB is is an integer).
  * Temporary workaround for musl libc systems such as gentoo Linux that
    allows them to compile calc and successfully run the regression test.

- Update to 2.14.1.1:

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=70
2022-12-01 09:34:57 +00:00
13e1278bce Accepting request 969339 from utilities
- Update to 2.14.1.0:
  * Fixed alignment of show item section of help command.
  * Bug fix: While 0^0 == 1, now for y > 0, 0^y == 0.
  * Adjusted cal/test8900.cal to reflect this bug fix.
  * Added tests to cal/regress.cal to help verify bug fix is fixed.

OBS-URL: https://build.opensuse.org/request/show/969339
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=31
2022-04-12 19:50:37 +00:00
59aab366bf - Update to 2.14.1.0:
* Fixed alignment of show item section of help command.
  * Bug fix: While 0^0 == 1, now for y > 0, 0^y == 0.
  * Adjusted cal/test8900.cal to reflect this bug fix.
  * Added tests to cal/regress.cal to help verify bug fix is fixed.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=68
2022-04-12 07:32:33 +00:00
28d999240d Accepting request 946083 from utilities
- Update to 2.14.0.14:
  * Fixed typo in Makefile.local comment.
- Remove calc-rpmlintrc: lib doesnt call exit() anymore

- Update to 2.14.0.13:
  * Minor tweak to seed() builtin. Updated help/srand and help/srandom.
  * Moved Makefile.ship into Makefile.
  * Removed custom/Makefile.head and custom/Makefile.tail.
  * The "README.*" files and "HOWTO.INSTALL" file have been updated.
  * By default, compiler warnings have been turned up.
  * The readline, history and ncurses libraries are now default.
  * We have renamed "stable" as "production".
  * We have renamed "unstable" as "tested".
  * Fixed bug impacting how have_ustat.h was formed.

- Update to 2.14.0.12:
  * Drop support for SunOS, IRIX and MINGW32_NT-5.0 targets.
  * Drop support for CLOCK_SGI_CYCLE.  Drop testing for __MSDOS__.
  * Minor improvement of various help files.  Made format of help
    files more consistent.
  * Corrected a few comments in zrandom.c, including a case where
    the comment referred to 1007 when it should have used 2^32.
  * Improved seed() generation.  Improved some comments in seed.c.
    Added have_environ.c to build have_environ.h in order to
    determine if: extern char **environ;  /* user environment */
    is an valid external symbol.
  * Fixed documentation that referred to the old additive 55
    generator.  We have been using the subtractive 100 in place
    of the additive 55 generator for a while now.
  * Fixed depend rule for custom/Makefile.

OBS-URL: https://build.opensuse.org/request/show/946083
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=30
2022-01-13 22:20:51 +00:00
64d394ecf5 OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=67 2022-01-13 11:02:39 +00:00
e6de743049 OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=66 2022-01-12 17:38:35 +00:00
3552731ec1 - Update to 2.14.0.14:
* Fixed typo in Makefile.local comment.
- Remove calc-rpmlintrc: lib doesnt call exit() anymore

- Update to 2.14.0.13:
  * Minor tweak to seed() builtin. Updated help/srand and help/srandom.
  * Moved Makefile.ship into Makefile.
  * Removed custom/Makefile.head and custom/Makefile.tail.
  * The "README.*" files and "HOWTO.INSTALL" file have been updated.
  * By default, compiler warnings have been turned up.
  * The readline, history and ncurses libraries are now default.
  * We have renamed "stable" as "production".
  * We have renamed "unstable" as "tested".
  * Fixed bug impacting how have_ustat.h was formed.

- Update to 2.14.0.12:
  * Drop support for SunOS, IRIX and MINGW32_NT-5.0 targets.
  * Drop support for CLOCK_SGI_CYCLE.  Drop testing for __MSDOS__.
  * Minor improvement of various help files.  Made format of help
    files more consistent.
  * Corrected a few comments in zrandom.c, including a case where
    the comment referred to 1007 when it should have used 2^32.
  * Improved seed() generation.  Improved some comments in seed.c.
    Added have_environ.c to build have_environ.h in order to
    determine if: extern char **environ;  /* user environment */
    is an valid external symbol.
  * Fixed documentation that referred to the old additive 55
    generator.  We have been using the subtractive 100 in place
    of the additive 55 generator for a while now.
  * Fixed depend rule for custom/Makefile.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=65
2022-01-12 17:11:18 +00:00
0c1112cc4c Accepting request 928961 from utilities
- Update to 2.14.0.6:
  * Fixed typo in cal/statistics.cal
  * Fixed an old Windoz pun in README.WINDOWS
  * Fixed a really obscure bug in the internal initconstants()
    function of const.c that has been sitting for over 31 years!
  * Fixed issues identied by the default CodeUL GitHub security code scan:
    + Wrong type of arguments to printf in have_fpos_pos.c
    + Multiplication result converted to larger type in zfunc.c

OBS-URL: https://build.opensuse.org/request/show/928961
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=29
2021-11-03 16:26:25 +00:00
2932b30cb7 - Update to 2.14.0.6:
* Fixed typo in cal/statistics.cal
  * Fixed an old Windoz pun in README.WINDOWS
  * Fixed a really obscure bug in the internal initconstants()
    function of const.c that has been sitting for over 31 years!
  * Fixed issues identied by the default CodeUL GitHub security code scan:
    + Wrong type of arguments to printf in have_fpos_pos.c
    + Multiplication result converted to larger type in zfunc.c

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=64
2021-11-03 08:29:16 +00:00
60eb7bd9e8 Accepting request 925094 from utilities
OBS-URL: https://build.opensuse.org/request/show/925094
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=28
2021-10-13 16:06:17 +00:00
8bc7f39422 Accepting request 925089 from home:adamm:branches:utilities
- Drop explicit -march definition (bsc#1191604, bsc#1100677)

OBS-URL: https://build.opensuse.org/request/show/925089
OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=63
2021-10-13 12:52:39 +00:00
87f1fe8df7 - Update to 2.14.0.3:
* Added builtin functions to convert between degrees and
    degrees, minutes and seconds under the config("mod")
    See help/d2dms and help/d2dm.
  * Added builtin functions to convert between gradians and
    gradians, minutes and seconds under the config("mod")
    See help/g2gms and help/g2gm.
  * Added builtin functions to convert between hours and
    hours, minutes and seconds under the config("mod")
    See help/h2hms and help/h2hm.
  * Renumbered regression tests 3408 thru 3437, to 9102 thru 9131.
  * Updated Added hms.cal resource file to use h2hms() builtin.
  * Updated Added dms.cal resource file to use d2dms() builtin.
  * Fix minor typo in help/mod SYNOPSIS.
  * Fix minor typo in help/quo SYNOPSIS.
  * Added a few more examples to help/strcmp.
  * Added builtin functions to convert between degrees, minutes and
    seconds and degrees under the config("mod")
    See help/dms2d and help/dm2d.
  * Added builtin functions to convert between gradians, minutes and
    seconds and gradians under the config("mod")
    See help/g2gms and help/g2gm.
  * Added builtin functions to convert between hours, minutes and
    seconds and hours under the config("mod"):
    See help/hms2h and help/hm2h.

OBS-URL: https://build.opensuse.org/package/show/utilities/calc?expand=0&rev=62
2021-10-13 08:29:57 +00:00
3abd3c60b8 Accepting request 917672 from utilities
- Update to 2.14.0.2:
  * The clean and clobber makefile rules no longer list custom/Makefile
    as a dependency.
  * Unfortunately due to the complex dependency issues between
    Makefile, Makefile.ship and custom/Makefile, parallel GNU make
    is NOT recommended.
  * Fixed a few typos in CHANGES.
  * As a side note: We stayed v2.13.x was kept for only a short time.
    The move to 2.14.x was motivated by non-compatible changes due to
    the default order of CALCRC, plus some new builtin functions.
  * More changes are likely, so we might see another v2.14.0.x release
    before things are declared "recommended stable".
  * Not that we wan to discourage people from trying v2.14.0, you should
    try it.  We just want things to become stable and well field tested
    before we reach the "recommended stable" release state.

OBS-URL: https://build.opensuse.org/request/show/917672
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calc?expand=0&rev=27
2021-09-09 21:07:33 +00:00