2000-03-08 H.J. Lu (hjl@gnu.org)
[binutils.git] / gprof / gen-c-prog.awk
blobb59c1f8d8dd353d0850d25a42c310ce1160eaf14
1 NR == 1 {
2 FS="\"";
3 print "/* ==> Do not modify this file!! It is created automatically"
4 printf " from %s using the gen-c-prog.awk script. <== */\n\n", FILE
5 print "#include <stdio.h>"
9 if (curfun != FUNCTION)
11 if (curfun)
12 print "}"
13 curfun = FUNCTION
14 print ""
15 print "void";
16 printf "%s (file)\n", FUNCTION
17 print " FILE *file;";
18 print "{";
20 printf " fputs (\"";
21 for (i = 1; i < NF; i++)
22 printf "%s\\\"", $i;
23 printf "%s\\n\", file);\n", $NF;
26 END { print "}" }