]> Git Repo - binutils.git/blobdiff - gprof/gprof.h
* config/tm-nbsd.h: New file, support for all NetBSD targets.
[binutils.git] / gprof / gprof.h
index d10f50c396a887c4b44c8a9747d6d3be31134f1e..0ac4c147d2022d6ebcef332301e60ea53239a08a 100644 (file)
  *     @(#)gprof.h     5.9 (Berkeley) 6/1/90
  */
 
+#include <ansidecl.h>
 #include "sysdep.h"
 #include "bfd.h"
 #include "gmon.h"
 
+/* AIX defines hz as a macro.  */
+#undef hz
+
 #ifdef MACHINE_H
 #      include MACHINE_H
 #else
@@ -47,7 +51,12 @@ char *whoami;
      * booleans
      */
 typedef int    bool;
+/* These may already be defined on some systems.  We could probably just
+   use the BFD versions of these, since BFD has already dealt with this
+   problem.  */
+#undef FALSE
 #define        FALSE   0
+#undef TRUE
 #define        TRUE    1
 
     /*
@@ -55,7 +64,7 @@ typedef int   bool;
      */
 long   hz;
 
-typedef        unsigned short UNIT;            /* unit of profiling */
+typedef        unsigned char UNIT[2];          /* unit of profiling */
 char   *a_outname;
 #define        A_OUTNAME               "a.out"
 
@@ -143,6 +152,13 @@ struct hdr {
     int        ncnt;
 };
 
+
+struct rawhdr {
+    char lowpc[4];
+    char highpc[4];
+    char ncnt[4];
+};
+
 struct hdr     h;
 
 int    debug;
@@ -151,7 +167,7 @@ int debug;
      * Each discretized pc sample has
      * a count of the number of samples in its range
      */
-UNIT   *samples;
+int    *samples;
 
 unsigned long  s_lowpc;        /* lowpc from the profile file */
 unsigned long  s_highpc;       /* highpc from the profile file */
@@ -189,12 +205,12 @@ struct stringlist {
     struct stringlist  *next;
     char               *string;
 };
-struct stringlist      *elist;
-struct stringlist      *Elist;
-struct stringlist      *flist;
-struct stringlist      *Flist;
-struct stringlist      *kfromlist;
-struct stringlist      *ktolist;
+extern struct stringlist       *elist;
+extern struct stringlist       *Elist;
+extern struct stringlist       *flist;
+extern struct stringlist       *Flist;
+extern struct stringlist       *kfromlist;
+extern struct stringlist       *ktolist;
 
     /*
      * function declarations
This page took 0.026578 seconds and 4 git commands to generate.