aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-07-06 20:20:31 +0000
committerKen Raeburn <raeburn@cygnus>1993-07-06 20:20:31 +0000
commit70e009144e6781fe959c58dbea9e3803ca25cbe4 (patch)
tree7bffc8cd6856339774d10e14f2fae2a2a2fbe4de /bfd/bfd.c
parent238ffce0bf7259ae220ac9b4502c145cbd32aa1c (diff)
downloadgdb-70e009144e6781fe959c58dbea9e3803ca25cbe4.zip
gdb-70e009144e6781fe959c58dbea9e3803ca25cbe4.tar.gz
gdb-70e009144e6781fe959c58dbea9e3803ca25cbe4.tar.bz2
Stricter prototyping, to force type conversions between 64-bit target and
32-bit host values. * libbfd.c (bfd_xmalloc_by_size_t): New function. * opncls.c (bfd_cache_init, bfd_open_file): Add prototypes to declarations. (obstack_chunk_alloc): Use bfd_xmalloc_by_size_t. (new_bfd): Prototype-style definition, using DEFUN. (bfd_alloc_grow, bfd_alloc, bfd_zalloc, bfd_realloc): Size argument is type size_t, not bfd_size_type. * ieee.c (obstack_chunk_alloc): Use bfd_xmalloc_by_size_t. * bfd.c (bfd_default_error_trap, bfd_error_trap, bfd_error_nonrepresentabltrap): Prototypes. * libbfd-in.h (bfd_alloc, bfd_zalloc, bfd_realloc, bfd_alloc_grow): Adjusted prototypes for arg type change. * archive.c (get_elt_at_filepos, do_slurp_bsd_armap, normalize, do_slurp_coff_armap, bfd_construct_extended_name_table): Prototypes.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r--bfd/bfd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 53dee5d..89d74f7 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -157,6 +157,7 @@ CODE_FRAGMENT
. struct trad_core_struct *trad_core_data;
. struct hppa_data_struct *hppa_data;
. struct hppa_core_struct *hppa_core_data;
+. struct sgi_core_struct *sgi_core_data;
. PTR any;
. } tdata;
.
@@ -292,15 +293,15 @@ bfd_errmsg (error_tag)
return bfd_errmsgs [(int)error_tag];
}
-
-void bfd_default_error_trap(error_tag)
-bfd_ec error_tag;
+void
+DEFUN (bfd_default_error_trap, (error_tag),
+ bfd_ec error_tag)
{
printf("bfd assert fail (%s)\n", bfd_errmsg(error_tag));
}
-void (*bfd_error_trap)() = bfd_default_error_trap;
-void (*bfd_error_nonrepresentabltrap)() = bfd_default_error_trap;
+void (*bfd_error_trap) PARAMS ((bfd_ec)) = bfd_default_error_trap;
+void (*bfd_error_nonrepresentabltrap) PARAMS ((bfd_ec)) = bfd_default_error_trap;
void
DEFUN(bfd_perror,(message),