* @(#)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
* 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
/*
*/
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"
int ncnt;
};
+
+struct rawhdr {
+ char lowpc[4];
+ char highpc[4];
+ char ncnt[4];
+};
+
struct hdr h;
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 */
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