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:
4
errtbl.c
4
errtbl.c
@@ -755,6 +755,10 @@ CONST struct errtbl error_table[] =
|
||||
{ 10603, "E_CIS_1", "Non-real epsilon for cis" },
|
||||
{ 10604, "E_CIS_2", "Bad first argument for cis" },
|
||||
{ 10605, "E_CIS_3", "Too-large re(argument) for cis" },
|
||||
{ 10606, "E_LN_3", "Cannot calculate ln of 0" },
|
||||
{ 10607, "E_LOG_5", "Cannot calculate log of 0" },
|
||||
{ 10608, "E_LOG2_4", "Cannot calculate log base 2 of 0" },
|
||||
{ 10609, "E_LOGN_6", "Cannot calculate log base n of 0" },
|
||||
/* IMPORTANT NOTE: add new entries above here and be sure their errnum numeric value is consecutive! */
|
||||
|
||||
/* The next NULL entry must be last */
|
||||
|
Reference in New Issue
Block a user