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/binemul.h | |
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/binemul.h')
-rw-r--r-- | binutils/binemul.h | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/binutils/binemul.h b/binutils/binemul.h index c0d5db0..c15260f 100644 --- a/binutils/binemul.h +++ b/binutils/binemul.h @@ -28,23 +28,15 @@ extern void ar_emul_usage (FILE *); extern void ar_emul_default_usage (FILE *); -extern bfd_boolean ar_emul_append (bfd **, char *, const char *, - bfd_boolean, bfd_boolean); -extern bfd_boolean ar_emul_append_bfd (bfd **, bfd *, - bfd_boolean, bfd_boolean); -extern bfd_boolean ar_emul_default_append (bfd **, bfd *, - bfd_boolean, bfd_boolean); -extern bfd_boolean do_ar_emul_append (bfd **, bfd *, - bfd_boolean, bfd_boolean, - bfd_boolean (*)(bfd *)); -extern bfd_boolean ar_emul_replace (bfd **, char *, const char *, - bfd_boolean); -extern bfd_boolean ar_emul_replace_bfd (bfd **, bfd *, - bfd_boolean); -extern bfd_boolean ar_emul_default_replace (bfd **, bfd *, - bfd_boolean); -extern bfd_boolean ar_emul_parse_arg (char *); -extern bfd_boolean ar_emul_default_parse_arg (char *); +extern bool ar_emul_append (bfd **, char *, const char *, bool, bool); +extern bool ar_emul_append_bfd (bfd **, bfd *, bool, bool); +extern bool ar_emul_default_append (bfd **, bfd *, bool, bool); +extern bool do_ar_emul_append (bfd **, bfd *, bool, bool, bool (*)(bfd *)); +extern bool ar_emul_replace (bfd **, char *, const char *, bool); +extern bool ar_emul_replace_bfd (bfd **, bfd *, bool); +extern bool ar_emul_default_replace (bfd **, bfd *, bool); +extern bool ar_emul_parse_arg (char *); +extern bool ar_emul_default_parse_arg (char *); /* Macros for common output. */ @@ -64,10 +56,10 @@ extern bfd_boolean ar_emul_default_parse_arg (char *); typedef struct bin_emulation_xfer_struct { /* Print out the extra options. */ - void (* ar_usage) (FILE *fp); - bfd_boolean (* ar_append) (bfd **, bfd *, bfd_boolean, bfd_boolean); - bfd_boolean (* ar_replace) (bfd **, bfd *, bfd_boolean); - bfd_boolean (* ar_parse_arg) (char *); + void (*ar_usage) (FILE *fp); + bool (*ar_append) (bfd **, bfd *, bool, bool); + bool (*ar_replace) (bfd **, bfd *, bool); + bool (*ar_parse_arg) (char *); } bin_emulation_xfer_type; |