mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
restore error return for invalid args in error(), errno(), strerror(), errsym()
Passing an invalid argument to error(), errno() or strerror() will again return an error value.
This commit is contained in:
5
CHANGES
5
CHANGES
@@ -307,11 +307,6 @@ The following are the changes from calc version 2.14.3.5 to date:
|
||||
The errtbl.h include file, unless ERRCODE_SRC is defined
|
||||
also includes attribute.h and errsym.h.
|
||||
|
||||
Passing an invalid argument to error(), errno() or strerror() will
|
||||
set errno AND throw a math error. Before errno would be set and
|
||||
an error value was returned. Before there was no way to tell if
|
||||
the error value was a result of the arg or if an error detected.
|
||||
|
||||
Added E_STRING to error([errnum | "E_STRING"]) builtin function.
|
||||
Added E_STRING to errno([errnum | "E_STRING"]) builtin function.
|
||||
Added E_STRING to strerror([errnum | "E_STRING"]) builtin function.
|
||||
|
Reference in New Issue
Block a user