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/source.c | |
parent | 9193bc4285c232400a26448ca75095c44c13f637 (diff) | |
download | fsf-binutils-gdb-faa7a26040c617a6d29f601998b99a1da882c672.zip fsf-binutils-gdb-faa7a26040c617a6d29f601998b99a1da882c672.tar.gz fsf-binutils-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/source.c')
-rw-r--r-- | gprof/source.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gprof/source.c b/gprof/source.c index 5e5cf33..e648a3a 100644 --- a/gprof/source.c +++ b/gprof/source.c @@ -28,7 +28,7 @@ #define EXT_ANNO "-ann" /* Postfix of annotated files. */ /* Default option values. */ -bfd_boolean create_annotation_files = FALSE; +bool create_annotation_files = false; Search_List src_search_list = {0, 0}; Source_File *first_src_file = 0; @@ -93,9 +93,9 @@ annotate_source (Source_File *sf, unsigned int max_width, void (*annote) (char *, unsigned int, int, void *), void *arg) { - static bfd_boolean first_file = TRUE; + static bool first_file = true; int i, line_num, nread; - bfd_boolean new_line; + bool new_line; char buf[8192]; char fname[PATH_MAX]; char *annotation, *name_only; @@ -110,7 +110,7 @@ annotate_source (Source_File *sf, unsigned int max_width, sle = 0; /* Don't use search list for absolute paths. */ name_only = 0; - while (TRUE) + while (true) { DBG (SRCDEBUG, printf ("[annotate_source]: looking for %s, trying %s\n", sf->name, fname)); @@ -225,12 +225,12 @@ annotate_source (Source_File *sf, unsigned int max_width, if (ofp == stdout) { if (first_file) - first_file = FALSE; + first_file = false; else fputc ('\n', ofp); if (first_output) - first_output = FALSE; + first_output = false; else fprintf (ofp, "\f\n"); @@ -239,7 +239,7 @@ annotate_source (Source_File *sf, unsigned int max_width, annotation = (char *) xmalloc (max_width + 1); line_num = 1; - new_line = TRUE; + new_line = true; while ((nread = fread (buf, 1, sizeof (buf), ifp)) > 0) { |