mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. Simplify
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
This commit is contained in:
@@ -253,19 +253,19 @@ typedef union {
|
||||
/* Try to read into CORE the header from the core file associated with ABFD.
|
||||
Return success. */
|
||||
|
||||
static boolean
|
||||
static bfd_boolean
|
||||
read_hdr (bfd *abfd, CoreHdr *core)
|
||||
{
|
||||
bfd_size_type size;
|
||||
|
||||
if (bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0)
|
||||
return false;
|
||||
return FALSE;
|
||||
|
||||
/* Read the leading portion that old and new core dump structures have in
|
||||
common. */
|
||||
size = CORE_COMMONSZ;
|
||||
if (bfd_bread (core, size, abfd) != size)
|
||||
return false;
|
||||
return FALSE;
|
||||
|
||||
/* Read the trailing portion of the structure. */
|
||||
if (CORE_NEW (*core))
|
||||
@@ -630,9 +630,9 @@ rs6000coff_core_p (abfd)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Return `true' if given core is from the given executable. */
|
||||
/* Return `TRUE' if given core is from the given executable. */
|
||||
|
||||
boolean
|
||||
bfd_boolean
|
||||
rs6000coff_core_file_matches_executable_p (core_bfd, exec_bfd)
|
||||
bfd *core_bfd;
|
||||
bfd *exec_bfd;
|
||||
@@ -642,11 +642,11 @@ rs6000coff_core_file_matches_executable_p (core_bfd, exec_bfd)
|
||||
char *path, *s;
|
||||
size_t alloc;
|
||||
const char *str1, *str2;
|
||||
boolean ret;
|
||||
bfd_boolean ret;
|
||||
file_ptr c_loader;
|
||||
|
||||
if (!read_hdr (core_bfd, &core))
|
||||
return false;
|
||||
return FALSE;
|
||||
|
||||
if (CORE_NEW (core))
|
||||
c_loader = CNEW_LOADER (core.new);
|
||||
@@ -659,12 +659,12 @@ rs6000coff_core_file_matches_executable_p (core_bfd, exec_bfd)
|
||||
size = (int) ((LdInfo *) 0)->l32.ldinfo_filename;
|
||||
|
||||
if (bfd_seek (core_bfd, c_loader + size, SEEK_SET) != 0)
|
||||
return false;
|
||||
return FALSE;
|
||||
|
||||
alloc = 100;
|
||||
path = bfd_malloc ((bfd_size_type) alloc);
|
||||
if (path == NULL)
|
||||
return false;
|
||||
return FALSE;
|
||||
s = path;
|
||||
|
||||
while (1)
|
||||
@@ -672,7 +672,7 @@ rs6000coff_core_file_matches_executable_p (core_bfd, exec_bfd)
|
||||
if (bfd_bread (s, (bfd_size_type) 1, core_bfd) != 1)
|
||||
{
|
||||
free (path);
|
||||
return false;
|
||||
return FALSE;
|
||||
}
|
||||
if (*s == '\0')
|
||||
break;
|
||||
@@ -686,7 +686,7 @@ rs6000coff_core_file_matches_executable_p (core_bfd, exec_bfd)
|
||||
if (n == NULL)
|
||||
{
|
||||
free (path);
|
||||
return false;
|
||||
return FALSE;
|
||||
}
|
||||
s = n + (path - s);
|
||||
path = n;
|
||||
@@ -701,9 +701,9 @@ rs6000coff_core_file_matches_executable_p (core_bfd, exec_bfd)
|
||||
str2 = str2 != NULL ? str2 + 1 : exec_bfd->filename;
|
||||
|
||||
if (strcmp (str1, str2) == 0)
|
||||
ret = true;
|
||||
ret = TRUE;
|
||||
else
|
||||
ret = false;
|
||||
ret = FALSE;
|
||||
|
||||
free (path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user