add -v flag to gprof (print version number)
authorDavid D. Zuhn <zoo@cygnus>
Thu, 16 Dec 1993 04:14:45 +0000 (04:14 +0000)
committerDavid D. Zuhn <zoo@cygnus>
Thu, 16 Dec 1993 04:14:45 +0000 (04:14 +0000)
gprof/ChangeLog
gprof/gprof.c

index fbc21779f97fa0a8d89b12a3e1697889b71b8805..12fac71b4c091461853bd0f2e580a19b35e35780 100644 (file)
@@ -1,3 +1,8 @@
+Wed Dec  8 16:55:06 1993  david d `zoo' zuhn  (zoo@andros.cygnus.com)
+
+       * gprof.c (VERSION): defined a version macro, print the value 
+       when the -v option is used
+
 Tue Jul  6 10:11:56 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
 
        * Makefile.in: Install correctly.
index 063fc80a598b5e13677645ab76d14d0e2c145ea3..e1c653c35e5ae16dc66d282df05eed51f300a922 100644 (file)
@@ -17,6 +17,8 @@
  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
+#define VERSION "0.0"
+
 #ifndef lint
 char copyright[] =
 "@(#) Copyright (c) 1983 Regents of the University of California.\n\
@@ -109,6 +111,10 @@ main(argc, argv)
        case 'T': /* "Traditional" output format */
            bsd_style_output = 1;
            break;
+        case 'v':
+           printf ("gprof version %s\n", VERSION);
+           exit(0);
+           break;
        case 'z':
            zflag = TRUE;
            break;
This page took 0.026513 seconds and 4 git commands to generate.