* addr2line.c: Convert to ISO C90 prototypes, change PTR, remove
unneeded (void *) casts. * ar.c: Likewise. * arlex.l: Likewise. * arparse.y: Likewise. * arsup.c: Likewise. * binemul.c: Likewise. * binemul.h: Likewise. * bucomm.c: Likewise. * bucomm.h: Likewise. * budbg.h: Likewise. * budemang.c: Likewise. * budemang.h: Likewise. * coffdump.c: Likewise. * coffgrok.c: Likewise. * cxxfilt.c: Likewise. * debug.c: Likewise. * debug.h: Likewise. * deflex.l: Likewise. * dlltool.c: Likewise. * dlltool.h: Likewise. * dllwrap.c: Likewise. * emul_aix.c: Likewise. * filemode.c: Likewise. * ieee.c: Likewise. * nlmconv.c: Likewise. * nlmconv.h: Likewise. * nlmheader.y: Likewise. * nm.c: Likewise. * prdbg.c: Likewise. * rclex.l: Likewise. * rcparse.y: Likewise. * rdcoff.c: Likewise. * rddbg.c: Likewise. * rename.c: Likewise. * resbin.c: Likewise. * rescoff.c: Likewise. * resrc.c: Likewise. * size.c: Likewise. * srconv.c: Likewise. * stabs.c: Likewise. * strings.c: Likewise. * sysdump.c: Likewise. * sysinfo.y: Likewise. * syslex.l: Likewise. * unwind-ia64.c: Likewise. * unwind-ia64.h: Likewise. * version.c: Likewise. * windres.c: Likewise. * windres.h: Likewise. * winduni.c: Likewise. * wrstabs.c: Likewise.
This commit is contained in:
parent
4a4b3fedfe
commit
2da42df615
53 changed files with 2377 additions and 4387 deletions
|
@ -38,18 +38,17 @@ typedef long time_t;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
static const char * endian_string PARAMS ((enum bfd_endian));
|
||||
static int display_target_list PARAMS ((void));
|
||||
static int display_info_table PARAMS ((int, int));
|
||||
static int display_target_tables PARAMS ((void));
|
||||
static const char * endian_string (enum bfd_endian);
|
||||
static int display_target_list (void);
|
||||
static int display_info_table (int, int);
|
||||
static int display_target_tables (void);
|
||||
|
||||
/* Error reporting. */
|
||||
|
||||
char *program_name;
|
||||
|
||||
void
|
||||
bfd_nonfatal (string)
|
||||
const char *string;
|
||||
bfd_nonfatal (const char *string)
|
||||
{
|
||||
const char *errmsg = bfd_errmsg (bfd_get_error ());
|
||||
|
||||
|
@ -60,17 +59,14 @@ bfd_nonfatal (string)
|
|||
}
|
||||
|
||||
void
|
||||
bfd_fatal (string)
|
||||
const char *string;
|
||||
bfd_fatal (const char *string)
|
||||
{
|
||||
bfd_nonfatal (string);
|
||||
xexit (1);
|
||||
}
|
||||
|
||||
void
|
||||
report (format, args)
|
||||
const char * format;
|
||||
va_list args;
|
||||
report (const char * format, va_list args)
|
||||
{
|
||||
fprintf (stderr, "%s: ", program_name);
|
||||
vfprintf (stderr, format, args);
|
||||
|
@ -104,7 +100,7 @@ non_fatal VPARAMS ((const char *format, ...))
|
|||
different target. */
|
||||
|
||||
void
|
||||
set_default_bfd_target ()
|
||||
set_default_bfd_target (void)
|
||||
{
|
||||
/* The macro TARGET is defined by Makefile. */
|
||||
const char *target = TARGET;
|
||||
|
@ -119,8 +115,7 @@ set_default_bfd_target ()
|
|||
the possible matching targets. */
|
||||
|
||||
void
|
||||
list_matching_formats (p)
|
||||
char **p;
|
||||
list_matching_formats (char **p)
|
||||
{
|
||||
fprintf (stderr, _("%s: Matching formats:"), program_name);
|
||||
while (*p)
|
||||
|
@ -131,9 +126,7 @@ list_matching_formats (p)
|
|||
/* List the supported targets. */
|
||||
|
||||
void
|
||||
list_supported_targets (name, f)
|
||||
const char *name;
|
||||
FILE *f;
|
||||
list_supported_targets (const char *name, FILE *f)
|
||||
{
|
||||
int t;
|
||||
const char **targ_names = bfd_target_list ();
|
||||
|
@ -152,9 +145,7 @@ list_supported_targets (name, f)
|
|||
/* List the supported architectures. */
|
||||
|
||||
void
|
||||
list_supported_architectures (name, f)
|
||||
const char *name;
|
||||
FILE *f;
|
||||
list_supported_architectures (const char *name, FILE *f)
|
||||
{
|
||||
const char **arch;
|
||||
|
||||
|
@ -172,8 +163,7 @@ list_supported_architectures (name, f)
|
|||
#define LONGEST_ARCH sizeof ("powerpc:common")
|
||||
|
||||
static const char *
|
||||
endian_string (endian)
|
||||
enum bfd_endian endian;
|
||||
endian_string (enum bfd_endian endian)
|
||||
{
|
||||
switch (endian)
|
||||
{
|
||||
|
@ -187,7 +177,7 @@ endian_string (endian)
|
|||
by its endianness and the architectures it supports. */
|
||||
|
||||
static int
|
||||
display_target_list ()
|
||||
display_target_list (void)
|
||||
{
|
||||
char *dummy_name;
|
||||
int t;
|
||||
|
@ -239,9 +229,7 @@ display_target_list ()
|
|||
architectures down). */
|
||||
|
||||
static int
|
||||
display_info_table (first, last)
|
||||
int first;
|
||||
int last;
|
||||
display_info_table (int first, int last)
|
||||
{
|
||||
int t;
|
||||
int a;
|
||||
|
@ -316,7 +304,7 @@ display_info_table (first, last)
|
|||
BFD has been configured to support. */
|
||||
|
||||
static int
|
||||
display_target_tables ()
|
||||
display_target_tables (void)
|
||||
{
|
||||
int t;
|
||||
int columns;
|
||||
|
@ -355,7 +343,7 @@ display_target_tables ()
|
|||
}
|
||||
|
||||
int
|
||||
display_info ()
|
||||
display_info (void)
|
||||
{
|
||||
printf (_("BFD header file version %s\n"), BFD_VERSION_STRING);
|
||||
if (! display_target_list () || ! display_target_tables ())
|
||||
|
@ -369,10 +357,7 @@ display_info ()
|
|||
Mode User\tGroup\tSize\tDate Name */
|
||||
|
||||
void
|
||||
print_arelt_descr (file, abfd, verbose)
|
||||
FILE *file;
|
||||
bfd *abfd;
|
||||
bfd_boolean verbose;
|
||||
print_arelt_descr (FILE *file, bfd *abfd, bfd_boolean verbose)
|
||||
{
|
||||
struct stat buf;
|
||||
|
||||
|
@ -403,8 +388,7 @@ print_arelt_descr (file, abfd, verbose)
|
|||
/* Return the name of a temporary file in the same directory as FILENAME. */
|
||||
|
||||
char *
|
||||
make_tempname (filename)
|
||||
char *filename;
|
||||
make_tempname (char *filename)
|
||||
{
|
||||
static char template[] = "stXXXXXX";
|
||||
char *tmpname;
|
||||
|
@ -454,9 +438,7 @@ make_tempname (filename)
|
|||
parsed. */
|
||||
|
||||
bfd_vma
|
||||
parse_vma (s, arg)
|
||||
const char *s;
|
||||
const char *arg;
|
||||
parse_vma (const char *s, const char *arg)
|
||||
{
|
||||
bfd_vma ret;
|
||||
const char *end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue