diff options
author | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2003-07-25 06:19:20 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2003-07-25 06:19:20 +0000 |
commit | 09fd220b8e3cdc177038c45e8d65b103fab62ba6 (patch) | |
tree | 12c70e912dd89f65e788deb17bdc588096410c14 /bfd/elf32-sh64-com.c | |
parent | 13752416b5264ffd4f769f2d539682eb23c035cb (diff) | |
download | gdb-09fd220b8e3cdc177038c45e8d65b103fab62ba6.zip gdb-09fd220b8e3cdc177038c45e8d65b103fab62ba6.tar.gz gdb-09fd220b8e3cdc177038c45e8d65b103fab62ba6.tar.bz2 |
* elf32-sh.c: Convert to C90. Replace PTR with void *.
* elf32-sh64-com.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-sh64.h: Likewise.
* elf64-sh64.c: Likewise.
Diffstat (limited to 'bfd/elf32-sh64-com.c')
-rw-r--r-- | bfd/elf32-sh64-com.c | 33 |
1 files changed, 9 insertions, 24 deletions
diff --git a/bfd/elf32-sh64-com.c b/bfd/elf32-sh64-com.c index b7ae364..4c219e8 100644 --- a/bfd/elf32-sh64-com.c +++ b/bfd/elf32-sh64-com.c @@ -28,15 +28,13 @@ #include "../opcodes/sh64-opc.h" static bfd_boolean sh64_address_in_cranges - PARAMS ((asection *cranges, bfd_vma, sh64_elf_crange *)); + (asection *cranges, bfd_vma, sh64_elf_crange *); /* Ordering functions of a crange, for the qsort and bsearch calls and for different endianness. */ int -_bfd_sh64_crange_qsort_cmpb (p1, p2) - const PTR p1; - const PTR p2; +_bfd_sh64_crange_qsort_cmpb (const void *p1, const void *p2) { bfd_vma a1 = bfd_getb32 (p1); bfd_vma a2 = bfd_getb32 (p2); @@ -49,9 +47,7 @@ _bfd_sh64_crange_qsort_cmpb (p1, p2) } int -_bfd_sh64_crange_qsort_cmpl (p1, p2) - const PTR p1; - const PTR p2; +_bfd_sh64_crange_qsort_cmpl (const void *p1, const void *p2) { bfd_vma a1 = (bfd_vma) bfd_getl32 (p1); bfd_vma a2 = (bfd_vma) bfd_getl32 (p2); @@ -64,9 +60,7 @@ _bfd_sh64_crange_qsort_cmpl (p1, p2) } int -_bfd_sh64_crange_bsearch_cmpb (p1, p2) - const PTR p1; - const PTR p2; +_bfd_sh64_crange_bsearch_cmpb (const void *p1, const void *p2) { bfd_vma a1 = *(bfd_vma *) p1; bfd_vma a2 = (bfd_vma) bfd_getb32 (p2); @@ -81,9 +75,7 @@ _bfd_sh64_crange_bsearch_cmpb (p1, p2) } int -_bfd_sh64_crange_bsearch_cmpl (p1, p2) - const PTR p1; - const PTR p2; +_bfd_sh64_crange_bsearch_cmpl (const void *p1, const void *p2) { bfd_vma a1 = *(bfd_vma *) p1; bfd_vma a2 = (bfd_vma) bfd_getl32 (p2); @@ -102,10 +94,8 @@ _bfd_sh64_crange_bsearch_cmpl (p1, p2) filled into RANGEP if non-NULL. */ static bfd_boolean -sh64_address_in_cranges (cranges, addr, rangep) - asection *cranges; - bfd_vma addr; - sh64_elf_crange *rangep; +sh64_address_in_cranges (asection *cranges, bfd_vma addr, + sh64_elf_crange *rangep) { bfd_byte *cranges_contents; bfd_byte *found_rangep; @@ -200,10 +190,7 @@ error_return: *RANGEP if it's non-NULL. */ enum sh64_elf_cr_type -sh64_get_contents_type (sec, addr, rangep) - asection *sec; - bfd_vma addr; - sh64_elf_crange *rangep; +sh64_get_contents_type (asection *sec, bfd_vma addr, sh64_elf_crange *rangep) { asection *cranges; @@ -256,9 +243,7 @@ sh64_get_contents_type (sec, addr, rangep) /* This is a simpler exported interface for the benefit of gdb et al. */ bfd_boolean -sh64_address_is_shmedia (sec, addr) - asection *sec; - bfd_vma addr; +sh64_address_is_shmedia (asection *sec, bfd_vma addr) { sh64_elf_crange dummy; return sh64_get_contents_type (sec, addr, &dummy) == CRT_SH5_ISA32; |