]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
* et_c.awk, et_h.awk: Fix off-by-one error.
authorTom Yu <tlyu@mit.edu>
Thu, 7 Oct 2004 21:11:29 +0000 (21:11 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 7 Oct 2004 21:11:29 +0000 (21:11 +0000)
* et_c.pl, et_h.pl: Regenerated.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16813 dc483132-0cff-0310-8789-dd5450dbe970

src/util/et/ChangeLog
src/util/et/et_c.awk
src/util/et/et_c.pl
src/util/et/et_h.awk
src/util/et/et_h.pl

index 0c7114832373f2ad22a7e6ad235838d3a6799a9a..934983400859caac44b1dcfe46ef194525b1f4fa 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 3368842351fca011b9d8350b867ea1873bee308a..cc277f5dcd84e7c60c67ffae890e9b45578a1f71 100644 (file)
@@ -184,7 +184,7 @@ c2n["_"]=63
        skipone=0
 }
 END {
-       if (table_item_count > 255) {
+       if (table_item_count > 256) {
            print "Error table too large!" | "cat 1>&2"
            exit 1
        }
index a4348a40991aa2c3ab515488a07d705e34d20583..a845eb0f87212a7461dd95d5776588c0fef2d614 100644 (file)
@@ -230,7 +230,7 @@ line: while (<>) {
     $skipone = 0;
 }
 
-if ($table_item_count > 255) {
+if ($table_item_count > 256) {
     &Pick('|', 'cat 1>&2') &&
        (print $fh 'Error table too large!');
     exit 1;
index 38008383030d1b381dc15c1cd409ac0a4c01c62c..e3d9fa4c722b4b88927736a127f8dc364c22199b 100644 (file)
@@ -113,6 +113,7 @@ c2n["_"]=63
        print "" > outfile
        print "#include <com_err.h>" > outfile
        print "" > outfile
+       table_item_count = 0
 }
 
 /^[ \t]*(error_code|ec)[ \t]+[A-Z_0-9]+,/ {
@@ -136,7 +137,7 @@ c2n["_"]=63
 }
 
 END {
-       if (table_item_count > 255) {
+       if (table_item_count > 256) {
            print "Error table too large!" | "cat 1>&2"
            exit 1
        }
index b5d1ee9801095e7de119da305844ec4a7f265239..e0965de4db22e858b141144331debd43e3f7daf9 100644 (file)
@@ -140,6 +140,7 @@ line: while (<>) {
            (print $fh '#include <com_err.h>');
        &Pick('>', $outfile) &&
            (print $fh '');
+       $table_item_count = 0;
     }
 
     if (/^[ \t]*(error_code|ec)[ \t]+[A-Z_0-9]+,/) {
@@ -168,7 +169,7 @@ line: while (<>) {
     }
 }
 
-if ($table_item_count > 255) {
+if ($table_item_count > 256) {
     &Pick('|', 'cat 1>&2') &&
        (print $fh 'Error table too large!');
     exit 1;