From e39cea5f46c20aa9a86c4881fd8e6ed32922ef11 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 15 Jan 1999 06:40:20 +0000 Subject: [PATCH] * coffdump.c (xcalloc): Remove, in libiberty now. * srconv.c (xcalloc): Likewise. * sysdump.c (xcalloc): Likewise. --- binutils/coffdump.c | 11 ++--------- binutils/srconv.c | 12 ++---------- binutils/sysdump.c | 12 ++---------- 3 files changed, 6 insertions(+), 29 deletions(-) diff --git a/binutils/coffdump.c b/binutils/coffdump.c index 64815fbeb33..5cd75cb75f3 100644 --- a/binutils/coffdump.c +++ b/binutils/coffdump.c @@ -32,15 +32,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #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 void dump_coff_scope (); @@ -485,7 +476,9 @@ main (ac, av) { NULL, no_argument, 0, 0 } }; +#ifdef HAVE_SETLOCALE setlocale (LC_MESSAGES, ""); +#endif bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); diff --git a/binutils/srconv.c b/binutils/srconv.c index bd1ea6521f8..e7e362c002a 100644 --- a/binutils/srconv.c +++ b/binutils/srconv.c @@ -66,16 +66,6 @@ static int ids2[20000]; static int base1 = 0x18; 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 get_member_id (x) int x; @@ -1919,7 +1909,9 @@ main (ac, av) char *input_file; char *output_file; +#ifdef HAVE_SETLOCALE setlocale (LC_MESSAGES, ""); +#endif bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); diff --git a/binutils/sysdump.c b/binutils/sysdump.c index 38630312c51..6810f6f14e9 100644 --- a/binutils/sysdump.c +++ b/binutils/sysdump.c @@ -41,16 +41,6 @@ static int code; 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; @@ -745,7 +735,9 @@ main (ac, av) {NULL, no_argument, 0, 0} }; +#ifdef HAVE_SETLOCALE setlocale (LC_MESSAGES, ""); +#endif bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); -- 2.30.2