X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gprof%2Fgen-c-prog.awk;h=c66cf45d0becc7ba006fa84439979aed2716b0ba;hb=2365f8d70c50afbfd6be69a4076ea6e78fb5485d;hp=b59c1f8d8dd353d0850d25a42c310ce1160eaf14;hpb=e98fe4f7b54cbdf29aef9287bbb1bea8801dd05a;p=deliverable%2Fbinutils-gdb.git diff --git a/gprof/gen-c-prog.awk b/gprof/gen-c-prog.awk index b59c1f8d8d..c66cf45d0b 100644 --- a/gprof/gen-c-prog.awk +++ b/gprof/gen-c-prog.awk @@ -3,6 +3,7 @@ NR == 1 { print "/* ==> Do not modify this file!! It is created automatically" printf " from %s using the gen-c-prog.awk script. <== */\n\n", FILE print "#include " + print "#include \"ansidecl.h\"" } { @@ -12,9 +13,9 @@ NR == 1 { print "}" curfun = FUNCTION print "" + print "void ", FUNCTION, "(FILE *);" print "void"; - printf "%s (file)\n", FUNCTION - print " FILE *file;"; + printf "%s (FILE *file)\n", FUNCTION print "{"; } printf " fputs (\"";