mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-01 16:35:04 +00:00
9388476b43
* make-c-prog.awk: which processes text files into C programs. * printgprof.c (flatprofheader, gprofheader): Call new functions to print blurbs. (printblurb): Remove. * Makefile.in: Infrastructure to build blurbs. * pathnames.h: has been removed. Gprof now has no filename dependencies in it. * gprof.c: Lint. Sat Jul 11 18:07:21 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) * Makefile.in: define man1dir and install the man page Fri Jul 10 21:14:08 1992 david d `zoo' zuhn (zoo@cygnus.com) * Makefile.in: added dummy info and install-info targets
30 lines
580 B
Awk
30 lines
580 B
Awk
BEGIN {
|
|
FS="\"";
|
|
print "/* ==> Do not modify this file!! It is created automatically"
|
|
print " by make-c-prog.awk; modify make-c-prog.awk instead. <== */"
|
|
print ""
|
|
print "#include <stdio.h>"
|
|
}
|
|
|
|
{
|
|
if (curfun != FUNCTION)
|
|
{
|
|
if (curfun)
|
|
print "}"
|
|
curfun = FUNCTION
|
|
print ""
|
|
print "void";
|
|
printf "%s (file)\n", FUNCTION
|
|
print " FILE *file;";
|
|
print "{";
|
|
}
|
|
printf " fputs (\"";
|
|
for (i = 1; i < NF; i++)
|
|
printf "%s\\\"", $i;
|
|
printf "%s\\n\", file);\n", $NF;
|
|
}
|
|
|
|
END {
|
|
print "}"
|
|
}
|