* coffdump.c (xcalloc): Remove, in libiberty now.
* srconv.c (xcalloc): Likewise. * sysdump.c (xcalloc): Likewise.
This commit is contained in:
parent
6f14976b70
commit
e39cea5f46
3 changed files with 6 additions and 29 deletions
|
@ -32,15 +32,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#define PROGRAM_VERSION "1.0"
|
#define PROGRAM_VERSION "1.0"
|
||||||
|
|
||||||
char *xcalloc(a,b)
|
|
||||||
int a;
|
|
||||||
int b;
|
|
||||||
{
|
|
||||||
char *r = xmalloc(a*b);
|
|
||||||
memset (r, 0, a * b);
|
|
||||||
return r;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int atnl;
|
static int atnl;
|
||||||
static void dump_coff_scope ();
|
static void dump_coff_scope ();
|
||||||
|
|
||||||
|
@ -485,7 +476,9 @@ main (ac, av)
|
||||||
{ NULL, no_argument, 0, 0 }
|
{ NULL, no_argument, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef HAVE_SETLOCALE
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
|
#endif
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
|
|
@ -66,16 +66,6 @@ static int ids2[20000];
|
||||||
static int base1 = 0x18;
|
static int base1 = 0x18;
|
||||||
static int base2 = 0x2018;
|
static int base2 = 0x2018;
|
||||||
|
|
||||||
char *
|
|
||||||
xcalloc (a, b)
|
|
||||||
int a;
|
|
||||||
int b;
|
|
||||||
{
|
|
||||||
char *r = xmalloc (a * b);
|
|
||||||
memset (r, 0, a * b);
|
|
||||||
return r;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
get_member_id (x)
|
get_member_id (x)
|
||||||
int x;
|
int x;
|
||||||
|
@ -1919,7 +1909,9 @@ main (ac, av)
|
||||||
char *input_file;
|
char *input_file;
|
||||||
char *output_file;
|
char *output_file;
|
||||||
|
|
||||||
|
#ifdef HAVE_SETLOCALE
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
|
#endif
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
|
|
@ -41,16 +41,6 @@ static int code;
|
||||||
static int addrsize = 4;
|
static int addrsize = 4;
|
||||||
static FILE *file;
|
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 *
|
char *
|
||||||
getCHARS (ptr, idx, size, max)
|
getCHARS (ptr, idx, size, max)
|
||||||
unsigned char *ptr;
|
unsigned char *ptr;
|
||||||
|
@ -745,7 +735,9 @@ main (ac, av)
|
||||||
{NULL, no_argument, 0, 0}
|
{NULL, no_argument, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef HAVE_SETLOCALE
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_MESSAGES, "");
|
||||||
|
#endif
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue