2002-02-10 Daniel Jacobowitz <drow@mvista.com>
* gprof.c: Include "getopt.h" after other includes, so that the proper macros are defined. * gen-c-prog.awk: Emit a prototype for the generated function.
This commit is contained in:
parent
408f8db182
commit
82fe033f4c
3 changed files with 9 additions and 1 deletions
|
@ -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 <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;";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue