x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4133 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -22,7 +22,6 @@ $1 == "error_table" || $1 == "et" {
|
|||||||
split(name, x, "\\.")
|
split(name, x, "\\.")
|
||||||
name=x[1]
|
name=x[1]
|
||||||
c_file = name "_err.c"
|
c_file = name "_err.c"
|
||||||
c_file_compat = name "_err_compat.c"
|
|
||||||
h_file = name "_err.h"
|
h_file = name "_err.h"
|
||||||
h = ""
|
h = ""
|
||||||
# gsub("[^a-zA-Z0-9]", "_", H_FILE)
|
# gsub("[^a-zA-Z0-9]", "_", H_FILE)
|
||||||
@@ -37,7 +36,7 @@ $1 == "error_table" || $1 == "et" {
|
|||||||
print "/* Generated from " FILENAME " */" > c_file
|
print "/* Generated from " FILENAME " */" > c_file
|
||||||
if(id_str != "")
|
if(id_str != "")
|
||||||
print id_str > c_file
|
print id_str > c_file
|
||||||
print "" > c_file_compat
|
print "" > c_file
|
||||||
print "#include <stddef.h>" > c_file # NULL
|
print "#include <stddef.h>" > c_file # NULL
|
||||||
print "#include <error.h>" > c_file
|
print "#include <error.h>" > c_file
|
||||||
print "#include <" h_file ">" > c_file
|
print "#include <" h_file ">" > c_file
|
||||||
@@ -55,7 +54,7 @@ $1 == "error_table" || $1 == "et" {
|
|||||||
print "" > h_file
|
print "" > h_file
|
||||||
print "void initialize_" name "_error_table_r(struct error_table**);" > h_file
|
print "void initialize_" name "_error_table_r(struct error_table**);" > h_file
|
||||||
print "" > h_file
|
print "" > h_file
|
||||||
print "void initialize_" name "_error_table(void); /* MIT compatible, don't use */" > h_file
|
print "void initialize_" name "_error_table(void);" > h_file
|
||||||
print "" > h_file
|
print "" > h_file
|
||||||
print "typedef enum " name "_error_number{" > h_file
|
print "typedef enum " name "_error_number{" > h_file
|
||||||
print "\tERROR_TABLE_BASE_" name " = " base "," > h_file
|
print "\tERROR_TABLE_BASE_" name " = " base "," > h_file
|
||||||
@@ -77,7 +76,7 @@ $1 == "prefix" {
|
|||||||
next
|
next
|
||||||
}
|
}
|
||||||
|
|
||||||
$1 == "error_code" {
|
$1 == "error_code" || $1 == "ec" {
|
||||||
code = $2
|
code = $2
|
||||||
split(code, x, ",")
|
split(code, x, ",")
|
||||||
code = prefix x[1]
|
code = prefix x[1]
|
||||||
|
Reference in New Issue
Block a user