aboutsummaryrefslogtreecommitdiff
path: root/gprof/source.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-11-30 08:39:46 +0000
committerAlan Modra <amodra@gmail.com>2002-11-30 08:39:46 +0000
commitb34976b65aea8f33690229600bbf4527ec3118e1 (patch)
tree6411348664ef81ca2aa2e3ff325116e6e6502edf /gprof/source.c
parent583d52d728c60410c0d39bae68ee536a7b9e7a6c (diff)
downloadfsf-binutils-gdb-b34976b65aea8f33690229600bbf4527ec3118e1.zip
fsf-binutils-gdb-b34976b65aea8f33690229600bbf4527ec3118e1.tar.gz
fsf-binutils-gdb-b34976b65aea8f33690229600bbf4527ec3118e1.tar.bz2
s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. Simplify
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
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 496373e..4074b2b 100644
--- a/gprof/source.c
+++ b/gprof/source.c
@@ -28,7 +28,7 @@
#define EXT_ANNO "-ann" /* Postfix of annotated files. */
/* Default option values. */
-boolean create_annotation_files = false;
+bfd_boolean create_annotation_files = FALSE;
Search_List src_search_list = {0, 0};
Source_File *first_src_file = 0;
@@ -97,9 +97,9 @@ annotate_source (sf, max_width, annote, arg)
void (*annote) PARAMS ((char *, unsigned int, int, void *));
void *arg;
{
- static boolean first_file = true;
+ static bfd_boolean first_file = TRUE;
int i, line_num, nread;
- boolean new_line;
+ bfd_boolean new_line;
char buf[8192];
char fname[PATH_MAX];
char *annotation, *name_only;
@@ -114,7 +114,7 @@ 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));
@@ -229,12 +229,12 @@ 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");
@@ -243,7 +243,7 @@ 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)
{
@@ -254,7 +254,7 @@ 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');