2 errmax - return or set maximum error-count before execution stops
13 Without an argument, errmax() returns the current value of an
14 internal variable errmax. Calling errmax(num) returns this value
15 but then resets its value to num. Execution is aborted if
16 evaluation of an error value if this makes errcount > errmax
19 When errmax is -1, there is no limit on the number of errors.
26 ; a = 1/0; b = 2 + ""; c = error(27); d = newerror("alpha");
27 Error 27 caused errcount to exceed errmax
29 ## Here global variables c and d were created when compiling the line
30 ## but execution was aborted before the intended assignments to c and d.
39 -1 <= num <= 2147483647
45 errcount, error, strerror, iserror, errno, newerror, errorcodes,
48 ## Copyright (C) 2006 Landon Curt Noll
50 ## Calc is open software; you can redistribute it and/or modify it under
51 ## the terms of the version 2.1 of the GNU Lesser General Public License
52 ## as published by the Free Software Foundation.
54 ## Calc is distributed in the hope that it will be useful, but WITHOUT
55 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
56 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
57 ## Public License for more details.
59 ## A copy of version 2.1 of the GNU Lesser General Public License is
60 ## distributed with calc under the filename COPYING-LGPL. You should have
61 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
62 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
64 ## @(#) $Revision: 30.1 $
65 ## @(#) $Id: errmax,v 30.1 2007/03/16 11:10:42 chongo Exp $
66 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/errmax,v $
68 ## Under source code control: 1997/03/08 08:51:14
69 ## File existed as early as: 1997
71 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
72 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/