mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
add errsym builtin function
NOTE: errstr was renamed to errsym. Added errsym builtin function. The errsym(errnum | "E_STRING") builtin, , when given a valid integer errnum that corresponds to a calc error condition, will return an E_STRING string, AND when given a valid E_STRING string that is associated with a calc error condition, will return errnum integer that corresponds to a calc error condition. Supplying a non-integer numeric errnum code to error(), errno(), strerror(), or errsym() will result in an error.
This commit is contained in:
10
CHANGES
10
CHANGES
@@ -329,6 +329,16 @@ The following are the changes from calc version 2.14.3.5 to date:
|
||||
computation error related E_STRING strings. Now related sets of
|
||||
E_STRING strings end in _ (underscore) followed by digits.
|
||||
|
||||
Added errsym builtin function. The errsym(errnum | "E_STRING")
|
||||
builtin, , when given a valid integer errnum that corresponds to a
|
||||
calc error condition, will return an E_STRING string, AND when given
|
||||
a valid E_STRING string that is associated with a calc error
|
||||
condition, will return errnum integer that corresponds to a calc
|
||||
error condition.
|
||||
|
||||
Supplying a non-integer numeric errnum code to error(), errno(),
|
||||
strerror(), or errsym() will result in an error.
|
||||
|
||||
|
||||
The following are the changes from calc version 2.14.3.4 to 2.14.3.5:
|
||||
|
||||
|
Reference in New Issue
Block a user