diff options
author | John Gilmore <gnu@cygnus> | 1992-07-13 02:24:24 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-07-13 02:24:24 +0000 |
commit | 9388476b43b2b36431b06d3ba53e27087b98839f (patch) | |
tree | b6e0941676d54efcf092fb2780201a273320e5b3 /gprof/printgprof.c | |
parent | f8f1415a4af940e1c64ad75102916ecda459aa42 (diff) | |
download | gdb-9388476b43b2b36431b06d3ba53e27087b98839f.zip gdb-9388476b43b2b36431b06d3ba53e27087b98839f.tar.gz gdb-9388476b43b2b36431b06d3ba53e27087b98839f.tar.bz2 |
* blurbs.c: New file, created from gprof.flat and gprof.callg by
* 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
Diffstat (limited to 'gprof/printgprof.c')
-rw-r--r-- | gprof/printgprof.c | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/gprof/printgprof.c b/gprof/printgprof.c index ce78852..5ef0c87 100644 --- a/gprof/printgprof.c +++ b/gprof/printgprof.c @@ -22,7 +22,6 @@ static char sccsid[] = "@(#)printgprof.c 5.7 (Berkeley) 6/1/90"; #endif /* not lint */ #include "gprof.h" -#include "pathnames.h" printprof() { @@ -78,7 +77,7 @@ flatprofheader() { if ( bflag ) { - printblurb( _PATH_FLAT_BLURB ); + flat_blurb(stdout); } printf( "\ngranularity: each sample hit covers %d byte(s)" , (long) scale * sizeof(UNIT) ); @@ -88,7 +87,7 @@ flatprofheader() } else { printf( " no time accumulated\n\n" ); /* - * this doesn't hurt sinc eall the numerators will be zero. + * this doesn't hurt since all the numerators will be zero. */ totime = 1.0; } @@ -124,7 +123,7 @@ gprofheader() { if ( bflag ) { - printblurb( _PATH_CALLG_BLURB ); + callg_blurb(stdout); } printf( "\ngranularity: each sample hit covers %d byte(s)" , (long) scale * sizeof(UNIT) ); @@ -632,23 +631,6 @@ arccmp( thisp , thatp ) } } -printblurb( blurbname ) - char *blurbname; -{ - FILE *blurbfile; - int input; - - blurbfile = fopen( blurbname , "r" ); - if ( blurbfile == NULL ) { - perror( blurbname ); - return; - } - while ( ( input = getc( blurbfile ) ) != EOF ) { - putchar( input ); - } - fclose( blurbfile ); -} - int namecmp( npp1 , npp2 ) nltype **npp1, **npp2; |