diff options
author | John Gilmore <gnu@cygnus> | 1992-11-05 11:13:01 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-11-05 11:13:01 +0000 |
commit | fefb4b30e634f3a70c538e63ac4a5445b0bee333 (patch) | |
tree | 2abb637a6d01170029776a555583d558a3633be2 /bfd/libbfd.h | |
parent | 042bf84cf70958140c1d7411981ff065e0ebb322 (diff) | |
download | fsf-binutils-gdb-fefb4b30e634f3a70c538e63ac4a5445b0bee333.zip fsf-binutils-gdb-fefb4b30e634f3a70c538e63ac4a5445b0bee333.tar.gz fsf-binutils-gdb-fefb4b30e634f3a70c538e63ac4a5445b0bee333.tar.bz2 |
Cleanup: Replace all uses of EXFUN in the BFD sources, with PARAMS.
* archures.c, reloc.c, section.c, tekhex.c: Use PARAMS in
declaring pointers to functions.
* cache.c, elf.c: Move static function decls to top, use PARAMS.
* seclet.h: Declare external function with PARAMS.
* libbfd.h: Update, based on changes in source code and chew.
Diffstat (limited to 'bfd/libbfd.h')
-rw-r--r-- | bfd/libbfd.h | 94 |
1 files changed, 69 insertions, 25 deletions
diff --git a/bfd/libbfd.h b/bfd/libbfd.h index 1bcfe84..5737804 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -189,14 +189,30 @@ extern bfd *bfd_last_cache; /* And more follows */ -void EXFUN(bfd_check_init, (void)); -PTR EXFUN(bfd_xmalloc, ( bfd_size_type size)); -void EXFUN(bfd_write_bigendian_4byte_int, (bfd *abfd, int i)); -bfd_vma EXFUN(bfd_log2, (bfd_vma x)); -void EXFUN(bfd_check_init, (void)); -PTR EXFUN(bfd_xmalloc, ( bfd_size_type size)); -void EXFUN(bfd_write_bigendian_4byte_int, (bfd *abfd, int i)); -bfd_vma EXFUN(bfd_log2, (bfd_vma x)); +void +bfd_check_init PARAMS ((void)); + +PTR +bfd_xmalloc PARAMS (( bfd_size_type size)); + +void +bfd_write_bigendian_4byte_int PARAMS ((bfd *abfd, int i)); + +bfd_vma +bfd_log2 PARAMS ((bfd_vma x)); + +void +bfd_check_init PARAMS ((void)); + +PTR +bfd_xmalloc PARAMS (( bfd_size_type size)); + +void +bfd_write_bigendian_4byte_int PARAMS ((bfd *abfd, int i)); + +bfd_vma +bfd_log2 PARAMS ((bfd_vma x)); + #define BFD_CACHE_MAX_OPEN 10 extern bfd *bfd_last_cache; @@ -204,34 +220,62 @@ extern bfd *bfd_last_cache; ((x)==bfd_last_cache? \ (FILE*)(bfd_last_cache->iostream): \ bfd_cache_lookup_worker(x)) -void EXFUN(bfd_cache_init , (bfd *)); -boolean EXFUN(bfd_cache_close , (bfd *)); -FILE* EXFUN(bfd_open_file, (bfd *)); -FILE *EXFUN(bfd_cache_lookup_worker, (bfd *)); -void EXFUN(bfd_constructor_entry, (bfd *abfd, +void +bfd_cache_init PARAMS ((bfd *)); + +boolean +bfd_cache_close PARAMS ((bfd *)); + +FILE* +bfd_open_file PARAMS ((bfd *)); + +FILE * +bfd_cache_lookup_worker PARAMS ((bfd *)); + +void +bfd_constructor_entry PARAMS ((bfd *abfd, asymbol **symbol_ptr_ptr, CONST char*type)); -CONST struct reloc_howto_struct *EXFUN(bfd_default_reloc_type_lookup - , (CONST struct bfd_arch_info *, + +CONST struct reloc_howto_struct * +bfd_default_reloc_type_lookup + PARAMS ((CONST struct bfd_arch_info *, bfd_reloc_code_real_type code)); -boolean EXFUN(bfd_generic_relax_section - , (bfd *abfd, + +boolean +bfd_generic_relax_section + PARAMS ((bfd *abfd, asection *section, asymbol **symbols)); + bfd_byte * -EXFUN(bfd_generic_get_relocated_section_contents, (bfd *abfd, + +bfd_generic_get_relocated_section_contents PARAMS ((bfd *abfd, struct bfd_seclet_struct *seclet, bfd_byte *data) ); + extern bfd_arch_info_type bfd_default_arch_struct; -boolean EXFUN(bfd_default_set_arch_mach, (bfd *abfd, +boolean +bfd_default_set_arch_mach PARAMS ((bfd *abfd, enum bfd_architecture arch, unsigned long mach)); -void EXFUN(bfd_arch_init, (void)); -void EXFUN(bfd_arch_linkin, (bfd_arch_info_type *)); -CONST bfd_arch_info_type *EXFUN(bfd_default_compatible - , (CONST bfd_arch_info_type *a, + +void +bfd_arch_init PARAMS ((void)); + +void +bfd_arch_linkin PARAMS ((bfd_arch_info_type *)); + +CONST bfd_arch_info_type * +bfd_default_compatible + PARAMS ((CONST bfd_arch_info_type *a, CONST bfd_arch_info_type *b)); -boolean EXFUN(bfd_default_scan, (CONST struct bfd_arch_info *, CONST char *)); -struct elf_internal_shdr *EXFUN(bfd_elf_find_section , (bfd *abfd, char *name)); + +boolean +bfd_default_scan PARAMS ((CONST struct bfd_arch_info *, CONST char *)); + +struct elf_internal_shdr * +bfd_elf_find_section PARAMS ((bfd *abfd, char *name)); + |