aboutsummaryrefslogtreecommitdiff
path: root/binutils/dlltool.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-05-05 23:25:27 +0000
committerAlan Modra <amodra@gmail.com>2002-05-05 23:25:27 +0000
commite80ff7de61a36e1f05da73ff3f2cddb39c7ba591 (patch)
tree14fadbfa703daa8d9fb3f6e953c142ecd09f498f /binutils/dlltool.c
parent405c98a4e3e0a6c0d9380852e2e82dbeca7edf56 (diff)
downloadgdb-e80ff7de61a36e1f05da73ff3f2cddb39c7ba591.zip
gdb-e80ff7de61a36e1f05da73ff3f2cddb39c7ba591.tar.gz
gdb-e80ff7de61a36e1f05da73ff3f2cddb39c7ba591.tar.bz2
* dlltool.c (process_def_file): Add missing prototype.
(new_directive, assemble_file, main): Likewise. (process_def_file, new_directive): Make static. (inform): Rewrite using VA_FIXEDARG. * dllwrap.c (mybasename): Add missing prototype. (strhash, main): Likewise. (inform): Rewrite using VA_FIXEDARG. (warn): Likewise. (cleanup_and_exit): Use old style function definition. (strhash): Likewise. * windres.c (define_resource): Use one memset to clear all of struct res_resource.
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r--binutils/dlltool.c32
1 files changed, 13 insertions, 19 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index 0ea3f8f..6864d22 100644
--- a/binutils/dlltool.c
+++ b/binutils/dlltool.c
@@ -658,6 +658,8 @@ static struct string_list *excludes;
static const char *rvaafter PARAMS ((int));
static const char *rvabefore PARAMS ((int));
static const char *asm_prefix PARAMS ((int));
+static void process_def_file PARAMS ((const char *));
+static void new_directive PARAMS ((char *));
static void append_import PARAMS ((const char *, const char *, int));
static void run PARAMS ((const char *, char *));
static void scan_drectve_symbols PARAMS ((bfd *));
@@ -674,6 +676,7 @@ static int sfunc PARAMS ((const void *, const void *));
static void flush_page PARAMS ((FILE *, long *, int, int));
static void gen_def_file PARAMS ((void));
static void generate_idata_ofile PARAMS ((FILE *));
+static void assemble_file PARAMS ((const char *, const char *));
static void gen_exp_file PARAMS ((void));
static const char *xlate PARAMS ((const char *));
#if 0
@@ -697,28 +700,17 @@ static void inform PARAMS ((const char *, ...));
static void
-#ifdef __STDC__
-inform (const char * message, ...)
-#else
-inform (message, va_alist)
- const char * message;
- va_dcl
-#endif
+inform VPARAMS ((const char *message, ...))
{
- va_list args;
-
+ VA_OPEN (args, message);
+ VA_FIXEDARG (args, const char *, message);
+
if (!verbose)
return;
-#ifdef __STDC__
- va_start (args, message);
-#else
- va_start (args);
-#endif
-
report (message, args);
-
- va_end (args);
+
+ VA_CLOSE (args);
}
static const char *
@@ -820,7 +812,7 @@ asm_prefix (machine)
static char **oav;
-void
+static void
process_def_file (name)
const char *name;
{
@@ -943,7 +935,7 @@ def_description (desc)
d_list = d;
}
-void
+static void
new_directive (dir)
char *dir;
{
@@ -3206,6 +3198,8 @@ static const struct option long_options[] =
{NULL,0,NULL,0}
};
+int main PARAMS ((int, char **));
+
int
main (ac, av)
int ac;