diff options
author | Nick Clifton <nickc@redhat.com> | 2012-07-13 14:22:50 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-07-13 14:22:50 +0000 |
commit | 2c3fc38946973ec305b63248abdd170eda059f80 (patch) | |
tree | 1f06480e02f06ee08d869db92f4c8677b76968ba /bfd/coff-stgo32.c | |
parent | cd6f1cf350bbc5d91977fccb8082cecea60d8465 (diff) | |
download | ppe42-binutils-2c3fc38946973ec305b63248abdd170eda059f80.tar.gz ppe42-binutils-2c3fc38946973ec305b63248abdd170eda059f80.zip |
* aix386-core.c: Remove use of PTR and PARAMS macros.
* archive.c: Likewise.
* cache.c: Likewise.
* cisco-core.c: Likewise.
* coff-alpha.c: Likewise.
* coff-apollo.c: Likewise.
* coff-aux.c: Likewise.
* coff-h8300.c: Likewise.
* coff-h8500.c: Likewise.
* coff-i386.c: Likewise.
* coff-i960.c: Likewise.
* coff-ia64.c: Likewise.
* coff-m68k.c: Likewise.
* coff-m88k.c: Likewise.
* coff-mcore.c: Likewise.
* coff-mips.c: Likewise.
* coff-or32.c: Likewise.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* coff-sh.c: Likewise.
* coff-sparc.c: Likewise.
* coff-stgo32.c: Likewise.
* coff-tic30.c: Likewise.
* coff-tic4x.c: Likewise.
* coff-tic54x.c: Likewise.
* coff-tic80.c: Likewise.
* coff-w65.c: Likewise.
* cofflink.c: Likewise.
* cpu-arc.c: Likewise.
* cpu-cris.c: Likewise.
* cpu-h8500.c: Likewise.
* cpu-i960.c: Likewise.
* cpu-msp430.c: Likewise.
* cpu-ns32k.c: Likewise.
* cpu-powerpc.c: Likewise.
* cpu-rs6000.c: Likewise.
* cpu-tic4x.c: Likewise.
* cpu-w65.c: Likewise.
* ecoff.c: Likewise.
* ecofflink.c: Likewise.
* elf-m10200.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-cris.c: Likewise.
* elf32-crx.c: Likewise.
* elf32-fr30.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-h8300.c: Likewise.
* elf32-i960.c: Likewise.
* elf32-m32c.c: Likewise.
* elf32-m68hc11.c: Likewise.
* elf32-m68hc12.c: Likewise.
* elf32-m68hc1x.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-rl78.c: Likewise.
* elf32-rx.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-vax.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-mmix.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sparc.c: Likewise.
* elfnn-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elfxx-sparc.c: Likewise.
* hash.c: Likewise.
* hp300hpux.c: Likewise.
* hppabsd-core.c: Likewise.
* hpux-core.c: Likewise.
* i386dynix.c: Likewise.
* i386linux.c: Likewise.
* i386lynx.c: Likewise.
* i386mach3.c: Likewise.
* i386msdos.c: Likewise.
* i386os9k.c: Likewise.
* irix-core.c: Likewise.
* lynx-core.c: Likewise.
* m68klinux.c: Likewise.
* mach-o.h: Likewise.
* mipsbsd.c: Likewise.
* netbsd-core.c: Likewise.
* nlm32-i386.c: Likewise.
* osf-core.c: Likewise.
* pc532-mach.c: Likewise.
* pef.c: Likewise.
* ppcboot.c: Likewise.
* ptrace-core.c: Likewise.
* reloc16.c: Likewise.
* sco5-core.c: Likewise.
* som.h: Likewise.
* sparclinux.c: Likewise.
* sparclynx.c: Likewise.
* ticoff.h: Likewise.
* trad-core.c: Likewise.
* vms-lib.c: Likewise.
* xsym.h: Likewise.
Diffstat (limited to 'bfd/coff-stgo32.c')
-rw-r--r-- | bfd/coff-stgo32.c | 124 |
1 files changed, 54 insertions, 70 deletions
diff --git a/bfd/coff-stgo32.c b/bfd/coff-stgo32.c index 125b0d915a..882ddd2f97 100644 --- a/bfd/coff-stgo32.c +++ b/bfd/coff-stgo32.c @@ -57,32 +57,30 @@ #include "sysdep.h" #include "bfd.h" -/* At first the prototypes. */ +/* All that ..._PRE and ...POST functions are called from the corresponding + coff_swap... functions. The ...PRE functions are called at the beginning + of the function and the ...POST functions at the end of the swap routines. */ static void -adjust_filehdr_in_post PARAMS ((bfd *, PTR, PTR)); +adjust_filehdr_in_post (bfd *, void *, void *); static void -adjust_filehdr_out_pre PARAMS ((bfd *, PTR, PTR)); +adjust_filehdr_out_pre (bfd *, void *, void *); static void -adjust_filehdr_out_post PARAMS ((bfd *, PTR, PTR)); +adjust_filehdr_out_post (bfd *, void *, void *); static void -adjust_scnhdr_in_post PARAMS ((bfd *, PTR, PTR)); +adjust_scnhdr_in_post (bfd *, void *, void *); static void -adjust_scnhdr_out_pre PARAMS ((bfd *, PTR, PTR)); +adjust_scnhdr_out_pre (bfd *, void *, void *); static void -adjust_scnhdr_out_post PARAMS ((bfd *, PTR, PTR)); +adjust_scnhdr_out_post (bfd *, void *, void *); static void -adjust_aux_in_post PARAMS ((bfd *, PTR, int, int, int, int, PTR)); +adjust_aux_in_post (bfd *, void *, int, int, int, int, void *); static void -adjust_aux_out_pre PARAMS ((bfd *, PTR, int, int, int, int, PTR)); +adjust_aux_out_pre (bfd *, void *, int, int, int, int, void *); static void -adjust_aux_out_post PARAMS ((bfd *, PTR, int, int, int, int, PTR)); +adjust_aux_out_post (bfd *, void *, int, int, int, int, void *); static void -create_go32_stub PARAMS ((bfd *)); - -/* All that ..._PRE and ...POST functions are called from the corresponding - coff_swap... functions. The ...PRE functions are called at the beginning - of the function and the ...POST functions at the end of the swap routines. */ +create_go32_stub (bfd *); #define COFF_ADJUST_FILEHDR_IN_POST adjust_filehdr_in_post #define COFF_ADJUST_FILEHDR_OUT_PRE adjust_filehdr_out_pre @@ -96,12 +94,12 @@ create_go32_stub PARAMS ((bfd *)); #define COFF_ADJUST_AUX_OUT_PRE adjust_aux_out_pre #define COFF_ADJUST_AUX_OUT_POST adjust_aux_out_post -static const bfd_target *go32_check_format (bfd *abfd); +static const bfd_target *go32_check_format (bfd *); #define COFF_CHECK_FORMAT go32_check_format static bfd_boolean - go32_stubbed_coff_bfd_copy_private_bfd_data PARAMS ((bfd *, bfd *)); + go32_stubbed_coff_bfd_copy_private_bfd_data (bfd *, bfd *); #define coff_bfd_copy_private_bfd_data go32_stubbed_coff_bfd_copy_private_bfd_data @@ -133,10 +131,9 @@ static const unsigned char stub_bytes[GO32_STUBSIZE] = if (val != 0) val += diff static void -adjust_filehdr_in_post (abfd, src, dst) - bfd *abfd ATTRIBUTE_UNUSED; - PTR src; - PTR dst; +adjust_filehdr_in_post (bfd * abfd ATTRIBUTE_UNUSED, + void * src, + void * dst) { FILHDR *filehdr_src = (FILHDR *) src; struct internal_filehdr *filehdr_dst = (struct internal_filehdr *) dst; @@ -151,10 +148,7 @@ adjust_filehdr_in_post (abfd, src, dst) } static void -adjust_filehdr_out_pre (abfd, in, out) - bfd *abfd; - PTR in; - PTR out; +adjust_filehdr_out_pre (bfd * abfd, void * in, void * out) { struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; FILHDR *filehdr_out = (FILHDR *) out; @@ -173,10 +167,9 @@ adjust_filehdr_out_pre (abfd, in, out) } static void -adjust_filehdr_out_post (abfd, in, out) - bfd *abfd ATTRIBUTE_UNUSED; - PTR in; - PTR out ATTRIBUTE_UNUSED; +adjust_filehdr_out_post (bfd * abfd ATTRIBUTE_UNUSED, + void * in, + void * out ATTRIBUTE_UNUSED) { struct internal_filehdr *filehdr_in = (struct internal_filehdr *) in; /* Undo the above change. */ @@ -184,10 +177,9 @@ adjust_filehdr_out_post (abfd, in, out) } static void -adjust_scnhdr_in_post (abfd, ext, in) - bfd *abfd ATTRIBUTE_UNUSED; - PTR ext ATTRIBUTE_UNUSED; - PTR in; +adjust_scnhdr_in_post (bfd * abfd ATTRIBUTE_UNUSED, + void * ext ATTRIBUTE_UNUSED, + void * in) { struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; @@ -197,10 +189,9 @@ adjust_scnhdr_in_post (abfd, ext, in) } static void -adjust_scnhdr_out_pre (abfd, in, out) - bfd *abfd ATTRIBUTE_UNUSED; - PTR in; - PTR out ATTRIBUTE_UNUSED; +adjust_scnhdr_out_pre (bfd * abfd ATTRIBUTE_UNUSED, + void * in, + void * out ATTRIBUTE_UNUSED) { struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; @@ -210,10 +201,9 @@ adjust_scnhdr_out_pre (abfd, in, out) } static void -adjust_scnhdr_out_post (abfd, in, out) - bfd *abfd ATTRIBUTE_UNUSED; - PTR in; - PTR out ATTRIBUTE_UNUSED; +adjust_scnhdr_out_post (bfd * abfd ATTRIBUTE_UNUSED, + void * in, + void * out ATTRIBUTE_UNUSED) { struct internal_scnhdr *scnhdr_int = (struct internal_scnhdr *) in; @@ -223,14 +213,13 @@ adjust_scnhdr_out_post (abfd, in, out) } static void -adjust_aux_in_post (abfd, ext1, type, in_class, indx, numaux, in1) - bfd *abfd ATTRIBUTE_UNUSED; - PTR ext1 ATTRIBUTE_UNUSED; - int type; - int in_class; - int indx ATTRIBUTE_UNUSED; - int numaux ATTRIBUTE_UNUSED; - PTR in1; +adjust_aux_in_post (bfd * abfd ATTRIBUTE_UNUSED, + void * ext1 ATTRIBUTE_UNUSED, + int type, + int in_class, + int indx ATTRIBUTE_UNUSED, + int numaux ATTRIBUTE_UNUSED, + void * in1) { union internal_auxent *in = (union internal_auxent *) in1; @@ -242,14 +231,13 @@ adjust_aux_in_post (abfd, ext1, type, in_class, indx, numaux, in1) } static void -adjust_aux_out_pre (abfd, inp, type, in_class, indx, numaux, extp) - bfd *abfd ATTRIBUTE_UNUSED; - PTR inp; - int type; - int in_class; - int indx ATTRIBUTE_UNUSED; - int numaux ATTRIBUTE_UNUSED; - PTR extp ATTRIBUTE_UNUSED; +adjust_aux_out_pre (bfd *abfd ATTRIBUTE_UNUSED, + void * inp, + int type, + int in_class, + int indx ATTRIBUTE_UNUSED, + int numaux ATTRIBUTE_UNUSED, + void * extp ATTRIBUTE_UNUSED) { union internal_auxent *in = (union internal_auxent *) inp; @@ -261,14 +249,13 @@ adjust_aux_out_pre (abfd, inp, type, in_class, indx, numaux, extp) } static void -adjust_aux_out_post (abfd, inp, type, in_class, indx, numaux, extp) - bfd *abfd ATTRIBUTE_UNUSED; - PTR inp; - int type; - int in_class; - int indx ATTRIBUTE_UNUSED; - int numaux ATTRIBUTE_UNUSED; - PTR extp ATTRIBUTE_UNUSED; +adjust_aux_out_post (bfd *abfd ATTRIBUTE_UNUSED, + void * inp, + int type, + int in_class, + int indx ATTRIBUTE_UNUSED, + int numaux ATTRIBUTE_UNUSED, + void * extp ATTRIBUTE_UNUSED) { union internal_auxent *in = (union internal_auxent *) inp; @@ -292,8 +279,7 @@ adjust_aux_out_post (abfd, inp, type, in_class, indx, numaux, extp) is taken. */ static void -create_go32_stub (abfd) - bfd *abfd; +create_go32_stub (bfd *abfd) { /* Do it only once. */ if (coff_data (abfd)->go32stub == NULL) @@ -394,9 +380,7 @@ stub_end: to the new obfd. */ static bfd_boolean -go32_stubbed_coff_bfd_copy_private_bfd_data (ibfd, obfd) - bfd *ibfd; - bfd *obfd; +go32_stubbed_coff_bfd_copy_private_bfd_data (bfd *ibfd, bfd *obfd) { /* Check if both are the same targets. */ if (ibfd->xvec != obfd->xvec) |