Artifact d4ceed024ed0ee5506dcb23b6e06fbadf0de41bf1cff3f5b7a5a53ffe271a53e:
- File global/gen-conds.awk — part of check-in [26c340d29e] at 2019-08-19 04:51:01 on branch trunk — begin move away from legacy build system (user: lexi, size: 499) [annotate] [blame] [check-ins using]
- File global/genconds.awk — part of check-in [b5f6f19923] at 2019-08-19 01:46:21 on branch trunk — updates, begin putting together error-handling mechanism (user: lexi, size: 499) [annotate] [blame] [check-ins using]
BEGIN { FS=":" offset = 0x7F print "#ifndef KIglobal_cond" print "#define KIglobal_cond" print "typedef enum kglobal_cond {" printf("kglobal_module_offset = 0x%x,\n", offset) } $2 == "short" { printf("\t%scond_id = 0x%x,\n", $3, offset*NR) } $2 == "long" { printf("\t%s_cond_id = 0x%x,\n", $3, offset*NR) } END { print "} kglobal_cond;" print "extern struct kglobal_module_record" print "\t{ const char* name, * desc, ** error_list }" print "\tkglobal_module_ident[];" print "#endif" }