Formerly ../mach/errsystems.awk.~4~
authormib <mib>
Wed, 24 Nov 1993 04:57:09 +0000 (04:57 +0000)
committermib <mib>
Wed, 24 Nov 1993 04:57:09 +0000 (04:57 +0000)
mach/errsystems.awk

index 82591ef..1a274dc 100644 (file)
@@ -4,14 +4,15 @@ BEGIN {
   nsubs = split(subsys, subs);
   while (nsubs > 0) printf "#include \"%s\"\n", subs[nsubs--];
   print "\n\n\
-static const struct error_system __mach_error_systems[err_max_system + 1] =";
+static struct error_system __mach_error_systems[err_max_system + 1] =";
   print "  {";
 }
 /^static.*err_[a-z0-9A-Z_]+_sub *\[/ {
   s = $0; sub(/^.*err_/, "", s); sub(/_sub.*$/, "", s);
-  printf "    [err_get_system (%s)] = { errlib_count (%s),\n", $i, s;
-  printf "    \"(system %s) error with unknown subsystem\", %s },\n", 
-             s, $i;
+  printf "    [err_get_system (err_%s)] { errlib_count (err_%s_sub),",
+       s, s;
+  printf "\"(system %s) error with unknown subsystem\", err_%s_sub },\n",
+       s, s;
 }
 END {
   print "  };";