File: gen_asm_defines.awk

package info (click to toggle)
mupen64plus-core 2.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 7,760 kB
  • sloc: ansic: 80,337; cpp: 1,404; asm: 1,096; makefile: 765; python: 619; sh: 325; awk: 9
file content (11 lines) | stat: -rw-r--r-- 260 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
BEGIN {
  nasm_file = dest_dir"/asm_defines_nasm.h";
  gas_file =  dest_dir"/asm_defines_gas.h";
}

/@ASM_DEFINE offsetof_struct_[a-zA-Z_0-9]+ 0x[0-9a-fA-F]+/ {
    print "%define "$2" ("$3")" > nasm_file;
    print "#define "$2" ("$3")" > gas_file;
}

END {}