aboutsummaryrefslogtreecommitdiff
path: root/gprof/source.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-02-01 01:18:06 +0000
committerAlan Modra <amodra@gmail.com>2002-02-01 01:18:06 +0000
commitbde52789b2840efede7cba2971d8b174586018fc (patch)
treee8b4ffaad471f45f27e475e24cdf2c7f3d596546 /gprof/source.c
parentd874f1e22527c1b95211222c110a137b0f50ec00 (diff)
downloadgdb-bde52789b2840efede7cba2971d8b174586018fc.zip
gdb-bde52789b2840efede7cba2971d8b174586018fc.tar.gz
gdb-bde52789b2840efede7cba2971d8b174586018fc.tar.bz2
* basic_blocks.c: Replace bool with boolean, TRUE with true and
FALSE with false 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. * hist.c: Likewise. * mips.c: Likewise. * source.c: Likewise. * source.h: Likewise. * sym_ids.c: Likewise. * sym_ids.h: Likewise. * symtab.h: Likewise. * tahoe.c: Likewise. * vax.c: Likewise. * gprof.h: Likewise. (TRUE): Don't define. (FALSE): Don't define.
Diffstat (limited to 'gprof/source.c')
-rw-r--r--gprof/source.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gprof/source.c b/gprof/source.c
index 7b9401f..c0bbabd 100644
--- a/gprof/source.c
+++ b/gprof/source.c
@@ -28,7 +28,7 @@
#define EXT_ANNO "-ann" /* Postfix of annotated files. */
/* Default option values. */
-bool create_annotation_files = FALSE;
+boolean create_annotation_files = false;
Search_List src_search_list = {0, 0};
Source_File *first_src_file = 0;
@@ -94,9 +94,9 @@ DEFUN (annotate_source, (sf, max_width, annote, arg),
AND void (*annote) PARAMS ((char *buf, int w, int l, void *arg))
AND void *arg)
{
- static bool first_file = TRUE;
+ static boolean first_file = true;
int i, line_num, nread;
- bool new_line;
+ boolean new_line;
char buf[8192];
char fname[PATH_MAX];
char *annotation, *name_only;
@@ -111,7 +111,7 @@ DEFUN (annotate_source, (sf, max_width, annote, arg),
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));
@@ -226,12 +226,12 @@ DEFUN (annotate_source, (sf, max_width, annote, arg),
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");
@@ -240,7 +240,7 @@ DEFUN (annotate_source, (sf, max_width, annote, arg),
annotation = xmalloc (max_width + 1);
line_num = 1;
- new_line = TRUE;
+ new_line = true;
while ((nread = fread (buf, 1, sizeof (buf), ifp)) > 0)
{
@@ -251,7 +251,7 @@ DEFUN (annotate_source, (sf, max_width, annote, arg),
(*annote) (annotation, max_width, line_num, arg);
fputs (annotation, ofp);
++line_num;
- new_line = FALSE;
+ new_line = false;
}
new_line = (buf[i] == '\n');