+2004-10-07 Tom Yu <tlyu@mit.edu>
+
+ * et_c.awk, et_h.awk: Fix off-by-one error.
+ * et_c.pl, et_h.pl: Regenerated.
+
2004-10-06 Ken Raeburn <raeburn@mit.edu>
* et_c.awk, et_h.awk: Complain if the error table is too large.
skipone=0
}
END {
- if (table_item_count > 255) {
+ if (table_item_count > 256) {
print "Error table too large!" | "cat 1>&2"
exit 1
}
$skipone = 0;
}
-if ($table_item_count > 255) {
+if ($table_item_count > 256) {
&Pick('|', 'cat 1>&2') &&
(print $fh 'Error table too large!');
exit 1;
print "" > outfile
print "#include <com_err.h>" > outfile
print "" > outfile
+ table_item_count = 0
}
/^[ \t]*(error_code|ec)[ \t]+[A-Z_0-9]+,/ {
}
END {
- if (table_item_count > 255) {
+ if (table_item_count > 256) {
print "Error table too large!" | "cat 1>&2"
exit 1
}
(print $fh '#include <com_err.h>');
&Pick('>', $outfile) &&
(print $fh '');
+ $table_item_count = 0;
}
if (/^[ \t]*(error_code|ec)[ \t]+[A-Z_0-9]+,/) {
}
}
-if ($table_item_count > 255) {
+if ($table_item_count > 256) {
&Pick('|', 'cat 1>&2') &&
(print $fh 'Error table too large!');
exit 1;