2003-07-18 Michael Snyder <msnyder@redhat.com>
[binutils-gdb.git] / gprof / gen-c-prog.awk
index cccf4280ef592477e55e07e79cffaea0a85d2e2e..b235a64a451888c3a33d47d48997b7301cacebab 100644 (file)
@@ -1,8 +1,9 @@
 NR == 1        {
     FS="\"";
     print "/* ==> Do not modify this file!!  It is created automatically"
-    printf "   from %s using the make-c-prog.awk script.  <== */\n\n", FILE
+    printf "   from %s using the gen-c-prog.awk script.  <== */\n\n", FILE
     print "#include <stdio.h>"
+    print "#include \"ansidecl.h\""
 }
 
        {
@@ -12,6 +13,7 @@ NR == 1       {
                print "}"
              curfun = FUNCTION
              print ""
+             print "void ", FUNCTION, "PARAMS ((FILE *));"
              print "void";
              printf "%s (file)\n", FUNCTION
              print "     FILE *file;";