* blurbs.c: New file, created from gprof.flat and gprof.callg by
[deliverable/binutils-gdb.git] / gprof / printgprof.c
index ce788522bd96514b328fb5ea32b90c77af691f35..5ef0c87b8cddd428f30f55ec5a7543fed1f03df7 100644 (file)
@@ -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 sincall 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;
This page took 0.024409 seconds and 4 git commands to generate.