put blurb in /usr/lib
authorKirk McKusick <mckusic@ucbvax.Berkeley.EDU>
Fri, 13 Nov 1981 07:08:14 +0000 (23:08 -0800)
committerKirk McKusick <mckusic@ucbvax.Berkeley.EDU>
Fri, 13 Nov 1981 07:08:14 +0000 (23:08 -0800)
SCCS-vsn: usr.bin/gprof/printgprof.c 1.7
SCCS-vsn: usr.bin/gprof/gprof.h 1.10

usr/src/usr.bin/gprof/gprof.h
usr/src/usr.bin/gprof/printgprof.c

index 9fbc1a4..4737381 100644 (file)
@@ -1,4 +1,4 @@
-    /* sccsid:  @(#)gprof.h    1.9 (Berkeley) %G% */
+    /* sccsid:  @(#)gprof.h    1.10 (Berkeley) %G% */
 
 #include <stdio.h>
 #include <sys/types.h>
 
 #include <stdio.h>
 #include <sys/types.h>
@@ -19,6 +19,12 @@ char *a_outname;
 char   *gmonname;
 #define        GMONNAME                "gmon.out"
 #define        GMONSUM                 "gmon.sum"
 char   *gmonname;
 #define        GMONNAME                "gmon.out"
 #define        GMONSUM                 "gmon.sum"
+       
+    /*
+     * the directory where the descriptions of the fields
+     * of the profiles are kept.
+     */
+#define        BLURBLIB                "/usr/lib/"
 
     /*
      * a constructed arc,
 
     /*
      * a constructed arc,
index 2589d47..bb5e60e 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-    static     char *sccsid = "@(#)printgprof.c        1.6 (Berkeley) %G%";
+    static     char *sccsid = "@(#)printgprof.c        1.7 (Berkeley) %G%";
 #endif lint
 
 #include "gprof.h"
 #endif lint
 
 #include "gprof.h"
@@ -594,9 +594,6 @@ printblurb( blurbname )
     FILE       *blurbfile;
     int                input;
 
     FILE       *blurbfile;
     int                input;
 
-#   ifndef BLURBLIB
-#      define BLURBLIB "./"
-#   endif not BLURBLIB
     sprintf( pathname , "%s%s" , BLURBLIB , blurbname );
     blurbfile = fopen( pathname , "r" );
     if ( blurbfile == NULL ) {
     sprintf( pathname , "%s%s" , BLURBLIB , blurbname );
     blurbfile = fopen( pathname , "r" );
     if ( blurbfile == NULL ) {