/* Sysroff object format dumper.
- Copyright (C) 1994, 95, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1994, 95, 98, 99, 2000 Free Software Foundation, Inc.
This file is part of GNU Binutils.
static int addrsize = 4;
static FILE *file;
-static char *
-xcalloc (a, b)
- int a;
- int b;
-{
- char *r = xmalloc (a * b);
- memset (r, 0, a * b);
- return r;
-}
-
char *
getCHARS (ptr, idx, size, max)
unsigned char *ptr;
getBARRAY (ptr, idx, dsize, max)
unsigned char *ptr;
int *idx;
- int dsize;
- int max;
+ int dsize ATTRIBUTE_UNUSED;
+ int max ATTRIBUTE_UNUSED;
{
barray res;
int i;
{NULL, no_argument, 0, 0}
};
+#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
setlocale (LC_MESSAGES, "");
+#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
if (!input_file)
{
- fprintf (stderr, _("%s: no input file specified\n"),
- program_name);
- exit (1);
+ fatal (_("no input file specified"));
}
file = fopen (input_file, FOPEN_RB);
if (!file)
{
- fprintf (stderr, _("%s: cannot open input file %s\n"),
- program_name, input_file);
- exit (1);
+ fatal (_("cannot open input file %s"), input_file);
}
module ();