123456789101112131415161718192021222324252627282930313233 |
- BEGIN { started = 0 }
- /^
- NF >= 1 && !started {
- printf "void dummy(void);\n";
- print "void dummy(void) {";
- started = 1;
- }
- $1 == "--" { next }
- NF == 1 { sub(/^.*$/, "& &"); }
- NF > 1 {
- name = $1;
- sub(/^[^ ]+[ ]+/, "");
- printf "__asm__ (\"@@@name@@@%s@@@value@@@%%0@@@end@@@\" : : \"i\" ((long) %s));\n",
- name, $0;
- }
- END { if (started) print "}" }
|