nbfd->format = bfd_unknown;
nbfd->my_archive = (bfd *) NULL;
nbfd->origin = 0;
- nbfd->opened_once = false;
- nbfd->output_has_begun = false;
+ nbfd->opened_once = FALSE;
+ nbfd->output_has_begun = FALSE;
nbfd->section_count = 0;
nbfd->usrdata = (PTR) NULL;
- nbfd->cacheable = false;
+ nbfd->cacheable = FALSE;
nbfd->flags = BFD_NO_FLAGS;
- nbfd->mtime_set = false;
+ nbfd->mtime_set = FALSE;
return nbfd;
}
_bfd_delete_bfd (nbfd);
return NULL;
}
- nbfd->opened_once = true;
+ nbfd->opened_once = TRUE;
return nbfd;
}
bfd_close
SYNOPSIS
- boolean bfd_close(bfd *abfd);
+ bfd_boolean bfd_close (bfd *abfd);
DESCRIPTION
if it was passed in to BFD by <<bfd_fdopenr>>).
RETURNS
- <<true>> is returned if all is ok, otherwise <<false>>.
+ <<TRUE>> is returned if all is ok, otherwise <<FALSE>>.
*/
-boolean
+bfd_boolean
bfd_close (abfd)
bfd *abfd;
{
- boolean ret;
+ bfd_boolean ret;
if (bfd_write_p (abfd))
{
if (! BFD_SEND_FMT (abfd, _bfd_write_contents, (abfd)))
- return false;
+ return FALSE;
}
if (! BFD_SEND (abfd, _close_and_cleanup, (abfd)))
- return false;
+ return FALSE;
ret = bfd_cache_close (abfd);
bfd_close_all_done
SYNOPSIS
- boolean bfd_close_all_done(bfd *);
+ bfd_boolean bfd_close_all_done (bfd *);
DESCRIPTION
Close a BFD. Differs from <<bfd_close>> since it does not
All memory attached to the BFD is released.
RETURNS
- <<true>> is returned if all is ok, otherwise <<false>>.
+ <<TRUE>> is returned if all is ok, otherwise <<FALSE>>.
*/
-boolean
+bfd_boolean
bfd_close_all_done (abfd)
bfd *abfd;
{
- boolean ret;
+ bfd_boolean ret;
ret = bfd_cache_close (abfd);
bfd_make_writable
SYNOPSIS
- boolean bfd_make_writable(bfd *abfd);
+ bfd_boolean bfd_make_writable (bfd *abfd);
DESCRIPTION
Takes a BFD as created by <<bfd_create>> and converts it
you will call <<bfd_make_readable>> on this bfd later.
RETURNS
- <<true>> is returned if all is ok, otherwise <<false>>.
+ <<TRUE>> is returned if all is ok, otherwise <<FALSE>>.
*/
-boolean
+bfd_boolean
bfd_make_writable(abfd)
bfd *abfd;
{
if (abfd->direction != no_direction)
{
bfd_set_error (bfd_error_invalid_operation);
- return false;
+ return FALSE;
}
bim = ((struct bfd_in_memory *)
abfd->direction = write_direction;
abfd->where = 0;
- return true;
+ return TRUE;
}
/*
bfd_make_readable
SYNOPSIS
- boolean bfd_make_readable(bfd *abfd);
+ bfd_boolean bfd_make_readable (bfd *abfd);
DESCRIPTION
Takes a BFD as created by <<bfd_create>> and
direction.
RETURNS
- <<true>> is returned if all is ok, otherwise <<false>>. */
+ <<TRUE>> is returned if all is ok, otherwise <<FALSE>>. */
-boolean
+bfd_boolean
bfd_make_readable(abfd)
bfd *abfd;
{
if (abfd->direction != write_direction || !(abfd->flags & BFD_IN_MEMORY))
{
bfd_set_error (bfd_error_invalid_operation);
- return false;
+ return FALSE;
}
if (! BFD_SEND_FMT (abfd, _bfd_write_contents, (abfd)))
- return false;
+ return FALSE;
if (! BFD_SEND (abfd, _close_and_cleanup, (abfd)))
- return false;
+ return FALSE;
abfd->arch_info = &bfd_default_arch_struct;
abfd->format = bfd_unknown;
abfd->my_archive = (bfd *) NULL;
abfd->origin = 0;
- abfd->opened_once = false;
- abfd->output_has_begun = false;
+ abfd->opened_once = FALSE;
+ abfd->output_has_begun = FALSE;
abfd->section_count = 0;
abfd->usrdata = (PTR) NULL;
- abfd->cacheable = false;
+ abfd->cacheable = FALSE;
abfd->flags = BFD_IN_MEMORY;
- abfd->mtime_set = false;
+ abfd->mtime_set = FALSE;
- abfd->target_defaulted = true;
+ abfd->target_defaulted = TRUE;
abfd->direction = read_direction;
abfd->sections = 0;
abfd->symcount = 0;
bfd_section_list_clear (abfd);
bfd_check_format (abfd, bfd_object);
- return true;
+ return TRUE;
}
/*