mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Updated COPYING file to indicate that these files are now covered under "The Unlicense" (see https://unlicense.org): sha1.c sha1.h cal/dotest.cal cal/screen.cal Updated help/credit to match the above changes to COPYING. Updated CONTRIB-CODE and calc.man to refer to using GitHub pull requests for contributing to calc (instead of using Email). Updated BUGS and calc.man to refer to using GitHub issues for reporting calc bugs (instead of using Email). Updated QUESTIONS and calc.man to refer to using GitHub issues for asking calc questions (instead of using Email). Fixed Makefile.local command example to refer to overriding the Makefile variable DEBUG (instead of CDEBUG). Fixed all make chk ASAN warnings under macOS 13.2.1 when calc is compiled with the following uncommented lines in Makefile.local: DEBUG:= -O0 -g CFLAGS+= -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined LDFLAGS+= -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined CALC_ENV+= ASAN_OPTIONS=detect_stack_use_after_return=1 Improved how pointers to functions are declared for the builtins array in func.c to avoid function declarations without a prototype that is now deprecated in C. Improved how pointers to functions are declared for the opcodes array in opcodes.c to avoid function declarations without a prototype Replaced use of egrep with grep -E in Makefiles. Fixed cases where variables were set but not used in symbol.c, calc.c, and the main function in func.c as used by funclist.c. Added rule name to "DO NOT EDIT -- generated by the Makefile" lines in constructed files. Test if <sys/vfs.h> exists and set HAVE_SYS_VFS_H accordingly in have_sys_vfs.h. Added HAVE_SYS_VFS_H to allow one to force this value. Test if <sys/param.h> exists and set HAVE_SYS_PARAM_H accordingly in have_sys_param.h. Added HAVE_SYS_PARAM_H to allow one to force this value. Test if <sys/mount.h> exists and set HAVE_SYS_MOUNT_H accordingly in have_sys_mount.h. Added HAVE_SYS_MOUNT_H to allow one to force this value. Test if the system as the statfs() system call and set HAVE_STATFS accordingly in have_statfs.h. Added HAVE_STATFS to allow one to force this value. The pseudo_seed() function will also try to call statfs() if possible and permitted by the HAVE_STATFS value.
192 lines
6.5 KiB
Plaintext
192 lines
6.5 KiB
Plaintext
calc - arbitrary precision calculator
|
|
|
|
|
|
This file is Copyrighted
|
|
------------------------
|
|
|
|
This file is not covered under version 2.1 of the GNU LGPL.
|
|
This file is covered under the following Copyright:
|
|
|
|
Copyright (C) 1999-2023 Landon Curt Noll
|
|
All rights reserved.
|
|
|
|
Everyone is permitted to copy and distribute verbatim copies
|
|
of this license document, but changing it is not allowed.
|
|
|
|
-=-
|
|
|
|
Calc is covered by the GNU Lesser General Public License
|
|
--------------------------------------------------------
|
|
|
|
Calc is open software; you can redistribute it and/or modify it under
|
|
the terms of the GNU Lesser General Public License as published by
|
|
the Free Software Foundation version 2.1 of the License.
|
|
|
|
Calc is several binary link libraries, several modules, associated
|
|
interface definition files and scripts used to control its compilation
|
|
and installation.
|
|
|
|
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 the GNU Lesser General Public License is distributed with
|
|
calc under the filename:
|
|
|
|
COPYING-LGPL
|
|
|
|
You may display this file by the calc command: help copying
|
|
|
|
You may display the GNU Lesser General
|
|
Public License by the calc command: help copying-lgpl
|
|
|
|
You should have received a copy of the version 2.1 GNU Lesser General
|
|
Public License with calc; if not, write to the following address:
|
|
|
|
Free Software Foundation, Inc.
|
|
51 Franklin Street
|
|
Fifth Floor
|
|
Boston, MA 02110-1301
|
|
USA
|
|
|
|
Calc's relationship to the GNU Lesser General Public License
|
|
------------------------------------------------------------
|
|
|
|
In section 0 of the GNU Lesser General Public License, one finds
|
|
the following definition:
|
|
|
|
The "Library", below, refers to any such software library or
|
|
work which has been distributed under these terms.
|
|
|
|
Calc is distributed under the terms of the GNU Lesser
|
|
General Public License.
|
|
|
|
In the same section 0, one also find the following:
|
|
|
|
For a library, complete source code means all the source code
|
|
for all modules it contains, plus any associated interface
|
|
definition files, plus the scripts used to control compilation
|
|
and installation of the library.
|
|
|
|
There are at least two calc binary link libraries found in calc:
|
|
|
|
libcalc.a libcustcalc.a
|
|
|
|
Clearly all files that go into the creation of those binary link
|
|
libraries are covered under the License.
|
|
|
|
The ``scripts used to control compilation and installation of the
|
|
of the library'' include:
|
|
|
|
* Makefiles
|
|
* source files created by the Makefiles
|
|
* source code used in the creation of intermediate source files
|
|
|
|
All of those files are covered under the License.
|
|
|
|
The ``associated interface definition files'' are those files that:
|
|
|
|
* show how the calc binary link libraries are used
|
|
* test the validity of the binary link libraries
|
|
* document routines found in the binary link libraries
|
|
* show how one can interactively use the binary link libraries
|
|
|
|
Calc provides an extensive set of files that perform the above
|
|
functions.
|
|
|
|
* files under the sample sub-directory
|
|
* files under the help sub-directory
|
|
* files under the lib sub-directory
|
|
* the main calc.c file
|
|
|
|
The ``complete source code'' includes ALL files shipped with calc,
|
|
except for the exception files explicitly listed in the ``Calc
|
|
copyrights and exception files'' section below.
|
|
|
|
-=-
|
|
|
|
Calc copyrights and exception files
|
|
-----------------------------------
|
|
|
|
With the exception of the files listed below, Calc is covered under
|
|
the following GNU Lesser General Public License Copyrights:
|
|
|
|
Copyright (C) year David I. Bell
|
|
Copyright (C) year David I. Bell and Landon Curt Noll
|
|
Copyright (C) year David I. Bell and Ernest Bowen
|
|
Copyright (C) year David I. Bell, Landon Curt Noll and Ernest Bowen
|
|
Copyright (C) year Landon Curt Noll
|
|
Copyright (C) year Ernest Bowen and Landon Curt Noll
|
|
Copyright (C) year Ernest Bowen
|
|
Copyright (C) year Petteri Kettunen and Landon Curt Noll
|
|
Copyright (C) year Christoph Zurnieden
|
|
Copyright (C) year Landon Curt Noll and Thomas Jones-Low
|
|
Copyright (C) year Klaus Alexander Seistrup and Landon Curt Noll
|
|
|
|
These files are not covered under one of the Copyrights listed above:
|
|
|
|
sha1.c sha1.h COPYING
|
|
COPYING-LGPL cal/screen.cal
|
|
|
|
The file COPYING-LGPL, which contains a copy of the version 2.1
|
|
GNU Lesser General Public License, is itself Copyrighted by the
|
|
Free Software Foundation, Inc. Please note that the Free Software
|
|
Foundation, Inc. does NOT have a copyright over calc, only the
|
|
COPYING-LGPL that is supplied with calc.
|
|
|
|
This file, COPYING, is distributed under the Copyright found at the
|
|
top of this file. It is important to note that you may distribute
|
|
verbatim copies of this file but you may not modify this file.
|
|
|
|
These files are covered under "The Unlicense":
|
|
|
|
sha1.c
|
|
sha1.h
|
|
cal/dotest.cal
|
|
cal/screen.cal
|
|
|
|
For more information on this license, see:
|
|
|
|
https://unlicense.org
|
|
|
|
In all cases one may use and distribute these exception files freely.
|
|
And because one may freely distribute the LGPL covered files, the
|
|
entire calc source may be freely used and distributed.
|
|
|
|
-=-
|
|
|
|
General Copyleft and License info
|
|
---------------------------------
|
|
|
|
For general information on Copylefts, see:
|
|
|
|
http://www.gnu.org/copyleft/
|
|
|
|
For information on GNU Lesser General Public Licenses, see:
|
|
|
|
http://www.gnu.org/copyleft/lesser.html
|
|
http://www.gnu.org/copyleft/lesser.txt
|
|
|
|
-=-
|
|
|
|
Why calc did not use the GNU General Public License
|
|
---------------------------------------------------
|
|
|
|
It has been suggested that one should consider using the GNU General
|
|
Public License instead of the GNU Lesser General Public License:
|
|
|
|
http://www.gnu.org/philosophy/why-not-lgpl.html
|
|
|
|
As you can read in the above URL, there are times where a library
|
|
cannot give free software any particular advantage. One of those
|
|
times is when there is significantly similar versions available
|
|
that are not covered under a Copyleft such as the GNU General Public
|
|
License.
|
|
|
|
The reason why calc was placed under the GNU Lesser General Public
|
|
License is because for many years (1984 thru 1999), calc was offered
|
|
without any form of Copyleft. At the time calc was placed under
|
|
the GNU Lesser General Public License, a number of systems and
|
|
distributions distributed calc without a Copyleft.
|