diff options
author | Ben Elliston <bje@au.ibm.com> | 2004-05-26 04:55:55 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2004-05-26 04:55:55 +0000 |
commit | 3e8f6abf1e13bfd39a48b297f2679f5dd5fe6a3a (patch) | |
tree | 7b9315a4e43b3f3b3afd4812669db89b236220c8 /gprof/hist.c | |
parent | 37b1bfcd81b4c43b5a649535c6306713cb04dd69 (diff) | |
download | gdb-3e8f6abf1e13bfd39a48b297f2679f5dd5fe6a3a.zip gdb-3e8f6abf1e13bfd39a48b297f2679f5dd5fe6a3a.tar.gz gdb-3e8f6abf1e13bfd39a48b297f2679f5dd5fe6a3a.tar.bz2 |
* alpha.c, basic_blocks.c, basic_blocks.h, bb_exit_func.c,
call_graph.c, call_graph.h, cg_arcs.c, cg_arcs.h, cg_dfn.c,
cg_dfn.h, cg_print.c, cg_print.h, corefile.c, corefile.h,
gmon_io.c, gmon_io.h, gprof.c, gprof.h, hertz.h, hist.c, hist.h,
i386.c, mips.c, search_list.c, search_list.h, source.c, source.h,
sparc.c, sym_ids.c, sym_ids.h, symtab.c, symtab.h, tahoe.c,
utils.c, utils.h, vax.c, gen-c-prog.awk: Convert K&R C to ANSI C.
Diffstat (limited to 'gprof/hist.c')
-rw-r--r-- | gprof/hist.c | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/gprof/hist.c b/gprof/hist.c index bfa34ee..0936bbd 100644 --- a/gprof/hist.c +++ b/gprof/hist.c @@ -33,13 +33,13 @@ #define UNITS_TO_CODE (offset_to_code / sizeof(UNIT)) -static void scale_and_align_entries PARAMS ((void)); -static void print_header PARAMS ((int)); -static void print_line PARAMS ((Sym *, double)); -static int cmp_time PARAMS ((const PTR, const PTR)); +static void scale_and_align_entries (void); +static void print_header (int); +static void print_line (Sym *, double); +static int cmp_time (const PTR, const PTR); /* Declarations of automatically generated functions to output blurbs. */ -extern void flat_blurb PARAMS ((FILE * fp)); +extern void flat_blurb (FILE * fp); bfd_vma s_lowpc; /* Lowest address in .text. */ bfd_vma s_highpc = 0; /* Highest address in .text. */ @@ -80,9 +80,7 @@ SItab[] = is provided for formatting error messages only. */ void -hist_read_rec (ifp, filename) - FILE * ifp; - const char *filename; +hist_read_rec (FILE * ifp, const char *filename) { bfd_vma n_lowpc, n_highpc; int i, ncnt, profrate; @@ -157,9 +155,7 @@ hist_read_rec (ifp, filename) of OFP and is provided for formatting error-messages only. */ void -hist_write_hist (ofp, filename) - FILE * ofp; - const char *filename; +hist_write_hist (FILE * ofp, const char *filename) { UNIT count; int i; @@ -351,8 +347,7 @@ hist_assign_samples () /* Print header for flag histogram profile. */ static void -print_header (prefix) - int prefix; +print_header (int prefix) { char unit[64]; @@ -391,9 +386,7 @@ print_header (prefix) static void -print_line (sym, scale) - Sym *sym; - double scale; +print_line (Sym *sym, double scale) { if (ignore_zeros && sym->ncalls == 0 && sym->hist.time == 0) return; @@ -430,9 +423,7 @@ print_line (sym, scale) lexicographic order of the function names. */ static int -cmp_time (lp, rp) - const PTR lp; - const PTR rp; +cmp_time (const PTR lp, const PTR rp) { const Sym *left = *(const Sym **) lp; const Sym *right = *(const Sym **) rp; |