aboutsummaryrefslogtreecommitdiff
path: root/gprof/symtab.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2004-05-26 04:55:55 +0000
committerBen Elliston <bje@au.ibm.com>2004-05-26 04:55:55 +0000
commit3e8f6abf1e13bfd39a48b297f2679f5dd5fe6a3a (patch)
tree7b9315a4e43b3f3b3afd4812669db89b236220c8 /gprof/symtab.c
parent37b1bfcd81b4c43b5a649535c6306713cb04dd69 (diff)
downloadgdb-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/symtab.c')
-rw-r--r--gprof/symtab.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/gprof/symtab.c b/gprof/symtab.c
index c4ce7ed..05568d1 100644
--- a/gprof/symtab.c
+++ b/gprof/symtab.c
@@ -26,7 +26,7 @@
#include "cg_arcs.h"
#include "corefile.h"
-static int cmp_addr PARAMS ((const PTR, const PTR));
+static int cmp_addr (const PTR, const PTR);
Sym_Table symtab;
@@ -34,8 +34,7 @@ Sym_Table symtab;
/* Initialize a symbol (so it's empty). */
void
-sym_init (sym)
- Sym *sym;
+sym_init (Sym *sym)
{
memset (sym, 0, sizeof (*sym));
@@ -59,9 +58,7 @@ sym_init (sym)
the global symbol survives. */
static int
-cmp_addr (lp, rp)
- const PTR lp;
- const PTR rp;
+cmp_addr (const PTR lp, const PTR rp)
{
const Sym *left = (const Sym *) lp;
const Sym *right = (const Sym *) rp;
@@ -79,8 +76,7 @@ cmp_addr (lp, rp)
void
-symtab_finalize (tab)
- Sym_Table *tab;
+symtab_finalize (Sym_Table *tab)
{
Sym *src, *dst;
bfd_vma prev_addr;
@@ -177,9 +173,7 @@ symtab_finalize (tab)
#ifdef DEBUG
Sym *
-dbg_sym_lookup (sym_tab, address)
- Sym_Table *sym_tab;
- bfd_vma address;
+dbg_sym_lookup (Sym_Table *sym_tab, bfd_vma address)
{
long low, mid, high;
Sym *sym;
@@ -218,9 +212,7 @@ dbg_sym_lookup (sym_tab, address)
/* Look up an address in the symbol-table that is sorted by address.
If address does not hit any symbol, 0 is returned. */
Sym *
-sym_lookup (sym_tab, address)
- Sym_Table *sym_tab;
- bfd_vma address;
+sym_lookup (Sym_Table *sym_tab, bfd_vma address)
{
long low, high;
long mid = -1;