mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
improve calc error code system
Added help/errorcodes rule to the top level Makefile. Added E_USERMAX symbol (== 32767) to indicate the maximum value allowed for user error codes. Improve help/error. Added text about error code ranges and range symbols.
This commit is contained in:
@@ -43,6 +43,7 @@ NF > 1 {
|
||||
END {
|
||||
printf("\n#define E__HIGHEST\t%d\t/* highest calc error */\n", NR+ebase);
|
||||
printf("#define E__COUNT\t%d\t/* number of calc errors */\n", NR);
|
||||
printf("#define E_USERDEF\t20000\t/* base of user defined errors */\n\n");
|
||||
printf("#define E_USERDEF\t20000\t/* base of user defined errors */\n");
|
||||
printf("#define E_USERMAX\t32767\t/* maximum user defined error value */\n\n");
|
||||
printf("/* names of calc error values */\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user