aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-03-17 16:36:08 +0000
committerIan Lance Taylor <ian@airs.com>1997-03-17 16:36:08 +0000
commit50ede03d760c23490792fc84fe98969fe5dfbacd (patch)
tree955f7be2e6db6fa129458cf319af4766d8bbfea6 /bfd/opncls.c
parent590c50d82cc981b0523e39fafa48c4d6585ec035 (diff)
downloadgdb-50ede03d760c23490792fc84fe98969fe5dfbacd.zip
gdb-50ede03d760c23490792fc84fe98969fe5dfbacd.tar.gz
gdb-50ede03d760c23490792fc84fe98969fe5dfbacd.tar.bz2
* opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t. Remove
old version of bfd_alloc. * libbfd-in.h (bfd_alloc_by_size_t): Don't declare. * libbfd.h: Rebuild. * Several files: Call bfd_alloc rather than bfd_alloc_by_size_t.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index ee8d152..f65dbff 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -1,5 +1,7 @@
/* opncls.c -- open and close a BFD.
- Copyright (C) 1990 91, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997
+ Free Software Foundation, Inc.
+
Written by Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
@@ -226,7 +228,7 @@ bfd_fdopenr (filename, target, fd)
bfd_set_error (bfd_error_invalid_target);
return NULL;
}
-#if defined(VMS) || defined(__GO32__) || defined (WINGDB)
+#if defined(VMS) || defined(__GO32__)
nbfd->iostream = (PTR)fopen(filename, FOPEN_RB);
#else
/* (O_ACCMODE) parens are to avoid Ultrix header file bug */
@@ -539,19 +541,19 @@ bfd_create (filename, templ)
/*
INTERNAL_FUNCTION
- bfd_alloc_by_size_t
+ bfd_alloc
SYNOPSIS
- PTR bfd_alloc_by_size_t(bfd *abfd, size_t wanted);
+ PTR bfd_alloc (bfd *abfd, size_t wanted);
DESCRIPTION
Allocate a block of @var{wanted} bytes of memory in the obstack
- attatched to <<abfd>> and return a pointer to it.
+ attached to <<abfd>> and return a pointer to it.
*/
PTR
-bfd_alloc_by_size_t (abfd, size)
+bfd_alloc (abfd, size)
bfd *abfd;
size_t size;
{
@@ -585,14 +587,6 @@ bfd_alloc_finish (abfd)
}
PTR
-bfd_alloc (abfd, size)
- bfd *abfd;
- size_t size;
-{
- return bfd_alloc_by_size_t(abfd, (size_t)size);
-}
-
-PTR
bfd_zalloc (abfd, size)
bfd *abfd;
size_t size;