diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-31 10:39:37 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-31 10:49:23 +1030 |
commit | 015dc7e1f8a971692a910e6cfc64faf9216e75c3 (patch) | |
tree | 53f0eb6489d86f4a6b734115c79c4e131af5416c /binutils/od-macho.c | |
parent | 78933a4ad9ae9c2e274d41e6b3036ea582c47810 (diff) | |
download | gdb-015dc7e1f8a971692a910e6cfc64faf9216e75c3.zip gdb-015dc7e1f8a971692a910e6cfc64faf9216e75c3.tar.gz gdb-015dc7e1f8a971692a910e6cfc64faf9216e75c3.tar.bz2 |
Use bool in binutils
* sysdep.h (POISON_BFD_BOOLEAN): Define.
* addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
* binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
* debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
* elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
* objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
* readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
* windmc.c, * windmc.h, * windres.c, * winduni.c,
* wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
and TRUE with true throughout.
Diffstat (limited to 'binutils/od-macho.c')
-rw-r--r-- | binutils/od-macho.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/binutils/od-macho.c b/binutils/od-macho.c index 9b76d6d..2906668 100644 --- a/binutils/od-macho.c +++ b/binutils/od-macho.c @@ -464,7 +464,7 @@ dump_segment (bfd *abfd ATTRIBUTE_UNUSED, bfd_mach_o_load_command *cmd) } static void -dump_dysymtab (bfd *abfd, bfd_mach_o_load_command *cmd, bfd_boolean verbose) +dump_dysymtab (bfd *abfd, bfd_mach_o_load_command *cmd, bool verbose) { bfd_mach_o_dysymtab_command *dysymtab = &cmd->command.dysymtab; bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); @@ -656,7 +656,7 @@ dump_dysymtab (bfd *abfd, bfd_mach_o_load_command *cmd, bfd_boolean verbose) } -static bfd_boolean +static bool load_and_dump (bfd *abfd, ufile_ptr off, unsigned int len, void (*dump)(bfd *abfd, unsigned char *buf, unsigned int len, ufile_ptr off)) @@ -664,7 +664,7 @@ load_and_dump (bfd *abfd, ufile_ptr off, unsigned int len, unsigned char *buf; if (len == 0) - return TRUE; + return true; buf = xmalloc (len); @@ -672,10 +672,10 @@ load_and_dump (bfd *abfd, ufile_ptr off, unsigned int len, && bfd_bread (buf, len, abfd) == len) dump (abfd, buf, len, off); else - return FALSE; + return false; free (buf); - return TRUE; + return true; } static const bfd_mach_o_xlat_name bfd_mach_o_dyld_rebase_type_name[] = @@ -968,7 +968,7 @@ dump_dyld_info_export (bfd *abfd, unsigned char *buf, unsigned int len, static void dump_dyld_info (bfd *abfd, bfd_mach_o_load_command *cmd, - bfd_boolean verbose) + bool verbose) { bfd_mach_o_dyld_info_command *dinfo = &cmd->command.dyld_info; @@ -1527,7 +1527,7 @@ dump_build_version (bfd *abfd, bfd_mach_o_load_command *cmd) static void dump_load_command (bfd *abfd, bfd_mach_o_load_command *cmd, - unsigned int idx, bfd_boolean verbose) + unsigned int idx, bool verbose) { bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd); const char *cmd_name; @@ -1769,9 +1769,9 @@ dump_load_commands (bfd *abfd, unsigned int cmd32, unsigned int cmd64) for (cmd = mdata->first_command, i = 0; cmd != NULL; cmd = cmd->next, i++) { if (cmd32 == 0) - dump_load_command (abfd, cmd, i, FALSE); + dump_load_command (abfd, cmd, i, false); else if (cmd->type == cmd32 || cmd->type == cmd64) - dump_load_command (abfd, cmd, i, TRUE); + dump_load_command (abfd, cmd, i, true); } } |