From faa7a26040c617a6d29f601998b99a1da882c672 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 31 Mar 2021 10:29:52 +1030 Subject: 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. --- gprof/cg_dfn.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gprof/cg_dfn.c') 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; } -- cgit v1.1