diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-31 10:29:52 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-31 10:49:23 +1030 |
commit | faa7a26040c617a6d29f601998b99a1da882c672 (patch) | |
tree | 704031231af1213b66d56395a5edaa65a043dd0b /gprof/cg_dfn.c | |
parent | 9193bc4285c232400a26448ca75095c44c13f637 (diff) | |
download | gdb-faa7a26040c617a6d29f601998b99a1da882c672.zip gdb-faa7a26040c617a6d29f601998b99a1da882c672.tar.gz gdb-faa7a26040c617a6d29f601998b99a1da882c672.tar.bz2 |
Use bool in gprof
* basic_blocks.c: Replace bfd_boolean with bool, FALSE with false,
and TRUE with true throughout.
* basic_blocks.h: Likewise.
* cg_arcs.c: Likewise.
* cg_dfn.c: Likewise.
* cg_print.c: Likewise.
* corefile.c: Likewise.
* gmon_io.c: Likewise.
* gprof.c: Likewise.
* gprof.h: Likewise.
* hist.c: Likewise.
* mips.c: Likewise.
* source.c: Likewise.
* source.h: Likewise.
* sym_ids.c: Likewise.
* sym_ids.h: Likewise.
* symtab.h: Likewise.
* vax.c: Likewise.
Diffstat (limited to 'gprof/cg_dfn.c')
-rw-r--r-- | gprof/cg_dfn.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gprof/cg_dfn.c b/gprof/cg_dfn.c index 1da4c66..426bf43 100644 --- a/gprof/cg_dfn.c +++ b/gprof/cg_dfn.c @@ -44,8 +44,8 @@ typedef struct } DFN_Stack; -static bfd_boolean is_numbered (Sym *); -static bfd_boolean is_busy (Sym *); +static bool is_numbered (Sym *); +static bool is_busy (Sym *); static void find_cycle (Sym *); static void pre_visit (Sym *); static void post_visit (Sym *); @@ -59,7 +59,7 @@ int dfn_counter = DFN_NAN; /* * Is CHILD already numbered? */ -static bfd_boolean +static bool is_numbered (Sym *child) { return child->cg.top_order != DFN_NAN && child->cg.top_order != DFN_BUSY; @@ -69,14 +69,14 @@ is_numbered (Sym *child) /* * Is CHILD already busy? */ -static bfd_boolean +static bool is_busy (Sym *child) { if (child->cg.top_order == DFN_NAN) { - return FALSE; + return false; } - return TRUE; + return true; } |