mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
change error printing from errnum to errsym
When printing an error, calc used to print the errnum (error number): ; 1/0 Error 10001 Calc now prints the errsym (errsym): ; 1/0 Error E_DIVBYZERO Added errsym E_LN_3 for ln(0). Added errsym E_LOG_5 for log(0). Added errsym E_LOG2_4 for log2(0). Added errsym E_LOGN_6 for logn(0,base).
This commit is contained in:
2
value.h
2
value.h
@@ -84,8 +84,6 @@ typedef struct random RANDOM;
|
||||
*
|
||||
* NOTE: The v_type can be a negative value. This happens when
|
||||
* an error is returned as a VALUE.
|
||||
*
|
||||
* XXX - calc v3 wish: make v_type and v_subtype an int32_t - XXX
|
||||
*/
|
||||
struct value {
|
||||
short v_type; /* type of value - IMPORTANT: v_type < 0 is an error code */
|
||||
|
Reference in New Issue
Block a user