ADDED arch/errtbl.awk Index: arch/errtbl.awk ================================================================== --- arch/errtbl.awk +++ arch/errtbl.awk @@ -0,0 +1,14 @@ +BEGIN { + FS=" " + + print "#ifndef KIplatform_error" + print "#define KIplatform_error" + print "enum k_platform_error {" +} + +{ print "\t" $1 " = " $2 "," } + +END { + print "};" + print "#endif" +}