improve calc error code system

Changed calc_errno a global int variable so that is may be directly
accessed by libcalc users.

Further improve help files for help/errno, help/error, help/newerror,
help/stoponerror and help/strerror by adding to documentation
of the calc error code system as well as libcalc interface
where applicable.
This commit is contained in:
Landon Curt Noll
2023-09-12 16:06:27 -07:00
parent 19819340ff
commit 229a60e4d5
8 changed files with 162 additions and 80 deletions

View File

@@ -22,6 +22,9 @@ DESCRIPTION
stoponerror value. When 1 argument is given, stoponerror() returns
the previous stoponerror value.
See help errcount for information on the current error count.
See help errmax for the maximum error-count before execution stops.
EXAMPLE
; stoponerror()
0
@@ -35,7 +38,7 @@ LINK LIBRARY
SEE ALSO
errcount, errmax, errorcodes, iserror, errno, strerror, newerror
## Copyright (C) 2006,2021 Landon Curt Noll
## Copyright (C) 2006,2021,2023 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