* et_c.awk: Actually define NOARGS as needed. Add prototype for
authorEzra Peisach <epeisach@mit.edu>
Mon, 24 Jul 2000 16:07:31 +0000 (16:07 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 24 Jul 2000 16:07:31 +0000 (16:07 +0000)
error table initiialization function.

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

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

index 9445923a044cab51b3ca6c2be1e046fb1686fe9a..16ed99267c80d067204c67e2a43ea31fdf121cee 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-24  Ezra Peisach  <epeisach@mit.edu>
+
+       * et_c.awk: Actually define NOARGS as needed. Add prototype for
+       error table initiialization function.
+
 2000-07-02  Ken Raeburn  <raeburn@mit.edu>
 
        * com_err.h (com_err): Undo previous change; com_err accepts a
index 94b258f0fab3af49ea6a37380924ee7199f0faa8..9c6a6cfa880c04d6aabaa550ed487501de67994d 100644 (file)
@@ -125,11 +125,15 @@ c2n["_"]=63
 
        print "#if defined(__STDC__) || defined(_MSDOS) || defined(_WIN32)" > outfile
        print "#define P(x) x" > outfile
+       print "#define NOARGS void" > outfile
        print "#else" > outfile
        print "#define P(x) ()" > outfile
+       print "#define NOARGS" > outfile
        print "#define const" > outfile
        print "#endif" > outfile
        print "" > outfile
+       print "extern void initialize_" table_name "_error_table (NOARGS);" > outfile
+       print "" > outfile
        print "static const char FAR * const text[] = {" > outfile
        table_item_count = 0
 }