aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-04-15 15:25:16 +0000
committerSteve Chamberlain <steve@cygnus>1991-04-15 15:25:16 +0000
commit9846338e68f0951443690e50cb678082a86be57e (patch)
tree83da5e493e728f6aa8cf5153cac383b338009a72 /bfd/opncls.c
parent14825ce9fa772c7024798c83291c822ee86797ea (diff)
downloadgdb-9846338e68f0951443690e50cb678082a86be57e.zip
gdb-9846338e68f0951443690e50cb678082a86be57e.tar.gz
gdb-9846338e68f0951443690e50cb678082a86be57e.tar.bz2
Merged in some changes from Intel,
Added some more prototypes.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 63e9c51..585acea 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -67,7 +67,7 @@ bfd *new_bfd()
nbfd->opened_once = false;
nbfd->output_has_begun = false;
nbfd->section_count = 0;
- nbfd->usrdata = (void *)NULL;
+ nbfd->usrdata = (PTR)NULL;
nbfd->sections = (asection *)NULL;
nbfd->cacheable = false;
nbfd->flags = NO_FLAGS;
@@ -76,7 +76,7 @@ bfd *new_bfd()
bfd *new_bfd_contained_in(obfd)
bfd *obfd;
{
- bfd *nbfd = new_bfd(obfd);
+ bfd *nbfd = new_bfd();
nbfd->xvec = obfd->xvec;
nbfd->my_archive = obfd;
nbfd->direction = read_direction;
@@ -87,9 +87,9 @@ bfd *obfd;
Returns a pointer to a freshly-allocated bfd on success, or NULL. */
bfd *
-bfd_openr (filename, target)
- char *filename;
- char *target;
+DEFUN(bfd_openr, (filename, target),
+ CONST char *filename AND
+ CONST char *target)
{
bfd *nbfd;
bfd_target *target_vec;
@@ -130,10 +130,10 @@ bfd_openr (filename, target)
*/
bfd *
-bfd_fdopenr (filename, target, fd)
- char *filename;
- char *target;
- int fd;
+DEFUN(bfd_fdopenr,(filename, target, fd),
+ CONST char *filename AND
+ CONST char *target AND
+ int fd)
{
bfd *nbfd;
bfd_target *target_vec;
@@ -204,9 +204,9 @@ bfd_fdopenr (filename, target, fd)
See comment by bfd_fdopenr before you try to modify this function. */
bfd *
-bfd_openw (filename, target)
- char *filename;
- char *target;
+DEFUN(bfd_openw,(filename, target),
+ CONST char *filename AND
+ CONST char *target)
{
bfd *nbfd;
bfd_target *target_vec;
@@ -262,9 +262,9 @@ bfd_close (abfd)
called to create a bfd with no ascociated file or target
*/
bfd *
-bfd_create(filename, template)
-char *filename;
-bfd *template;
+DEFUN(bfd_create,(filename, template),
+ CONST char *filename AND
+ CONST bfd *template)
{
bfd *nbfd = new_bfd();
if (nbfd == (bfd *)NULL) {