3 print "/* DO NOT EDIT: AUTOMATICALLY GENERATED"
4 print " * Input files: bootrom-asm-offsets.awk bootrom-asm-offsets.c.in"
5 print " * DO NOT EDIT: AUTOMATICALLY GENERATED"
8 system("cat bootrom-asm-offsets.c.in")
13 /* find a structure definition
*/
14 if ($
0 ~
/typedef struct .
* {/) {
18 /* extract each member of the structure
*/
27 /* grab the structure
's name */
29 sub(/;$/, "", struct);
31 /* output the DEFINE() macros */
33 print "\tDEFINE(" struct ", " members[i] ");"