diff --git a/lib/com_err/compile_et.awk b/lib/com_err/compile_et.awk index ab45504c0..52d0c3ed3 100644 --- a/lib/com_err/compile_et.awk +++ b/lib/com_err/compile_et.awk @@ -18,13 +18,12 @@ $1 == "error_table" { number = 0 print "/* Generated from " FILENAME " */" > c_file print "#include " > c_file - print "#include " > c_file # print "#include \"" h_file "\"\n" > c_file print "" > c_file print "static const char *text[] = {" > c_file print "/* Generated from " FILENAME " */" > h_file - print "#include " > h_file +# print "#include " > h_file print "" > h_file print "void initialize_" name "_error_table(struct error_list**);" > h_file print "" > h_file @@ -48,6 +47,7 @@ function end_file(c_file, h_file){ print "\t}" > c_file print "}" > c_file close(c_file) + print "\t" name "_num_errors = " number > h_file print "};" > h_file close(h_file) } diff --git a/lib/error/compile_et.awk b/lib/error/compile_et.awk index ab45504c0..52d0c3ed3 100644 --- a/lib/error/compile_et.awk +++ b/lib/error/compile_et.awk @@ -18,13 +18,12 @@ $1 == "error_table" { number = 0 print "/* Generated from " FILENAME " */" > c_file print "#include " > c_file - print "#include " > c_file # print "#include \"" h_file "\"\n" > c_file print "" > c_file print "static const char *text[] = {" > c_file print "/* Generated from " FILENAME " */" > h_file - print "#include " > h_file +# print "#include " > h_file print "" > h_file print "void initialize_" name "_error_table(struct error_list**);" > h_file print "" > h_file @@ -48,6 +47,7 @@ function end_file(c_file, h_file){ print "\t}" > c_file print "}" > c_file close(c_file) + print "\t" name "_num_errors = " number > h_file print "};" > h_file close(h_file) } diff --git a/lib/krb5/error/compile_et.awk b/lib/krb5/error/compile_et.awk index ab45504c0..52d0c3ed3 100644 --- a/lib/krb5/error/compile_et.awk +++ b/lib/krb5/error/compile_et.awk @@ -18,13 +18,12 @@ $1 == "error_table" { number = 0 print "/* Generated from " FILENAME " */" > c_file print "#include " > c_file - print "#include " > c_file # print "#include \"" h_file "\"\n" > c_file print "" > c_file print "static const char *text[] = {" > c_file print "/* Generated from " FILENAME " */" > h_file - print "#include " > h_file +# print "#include " > h_file print "" > h_file print "void initialize_" name "_error_table(struct error_list**);" > h_file print "" > h_file @@ -48,6 +47,7 @@ function end_file(c_file, h_file){ print "\t}" > c_file print "}" > c_file close(c_file) + print "\t" name "_num_errors = " number > h_file print "};" > h_file close(h_file) }