diff options
author | Jeff Law <law@redhat.com> | 1999-01-15 06:40:20 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1999-01-15 06:40:20 +0000 |
commit | e39cea5f46c20aa9a86c4881fd8e6ed32922ef11 (patch) | |
tree | 82334413230838abb1030d38bfe6692b50b8b9a7 | |
parent | 6f14976b704a0f2782f48b7f84ad843310f030c8 (diff) | |
download | gdb-e39cea5f46c20aa9a86c4881fd8e6ed32922ef11.zip gdb-e39cea5f46c20aa9a86c4881fd8e6ed32922ef11.tar.gz gdb-e39cea5f46c20aa9a86c4881fd8e6ed32922ef11.tar.bz2 |
* coffdump.c (xcalloc): Remove, in libiberty now.
* srconv.c (xcalloc): Likewise.
* sysdump.c (xcalloc): Likewise.
-rw-r--r-- | binutils/coffdump.c | 11 | ||||
-rw-r--r-- | binutils/srconv.c | 12 | ||||
-rw-r--r-- | binutils/sysdump.c | 12 |
3 files changed, 6 insertions, 29 deletions
diff --git a/binutils/coffdump.c b/binutils/coffdump.c index 64815fb..5cd75cb 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 bd1ea65..e7e362c 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 3863031..6810f6f 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); |