update which calc error codes are unused

In calcerr.tbl, error codes that are no longer
used start their error message with "UNUSED ERROR:".
This commit is contained in:
Landon Curt Noll
2023-09-10 23:20:39 -07:00
parent bf730f5518
commit 81eb6eac11
2 changed files with 15 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
#
# calcerr_h - help produce calcerr.h from calcerr.tbl
#
# Copyright (C) 1999 Landon Curt Noll
# Copyright (C) 1999,2023 Landon Curt Noll
#
# Calc is open software; you can redistribute it and/or modify it under
# the terms of the version 2.1 of the GNU Lesser General Public License
@@ -42,7 +42,7 @@ NF > 1 {
}
END {
printf("\n#define E__HIGHEST\t%d\t/* highest calc error */\n", NR+ebase);
printf("#define E__COUNT\t\t%d\t/* number of calc errors */\n", NR);
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("/* names of calc error values */\n");
}