aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/dump.c
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@gcc.gnu.org>2003-03-19 20:34:10 +0000
committerNathanael Nerode <neroden@gcc.gnu.org>2003-03-19 20:34:10 +0000
commit2bd3ecadd83939fd4bc531d4f6ab11e2326892b4 (patch)
treef55a99d28f04841642f126e415df18047f0526cd /gcc/cp/dump.c
parent784fb70e84d78a83a6599824b8b5e44eb85ba633 (diff)
downloadgcc-2bd3ecadd83939fd4bc531d4f6ab11e2326892b4.zip
gcc-2bd3ecadd83939fd4bc531d4f6ab11e2326892b4.tar.gz
gcc-2bd3ecadd83939fd4bc531d4f6ab11e2326892b4.tar.bz2
c-common.h (c_dump_tree), [...]): Change return type from 'int' to 'bool'.
(gcc) * c-common.h (c_dump_tree), c-dump.c (c_dump_tree), langhooks-def.h (lhd_tree_dump_dump_tree), langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree): Change return type from 'int' to 'bool'. Replace 0 and 1 with true and false in return statements. (cp) * dump.c (cp_dump_tree), cp-tree.h (cp_dump_tree): Change return type from 'int' to 'bool'. Replace 0 and 1 with true and false in return statements. (java) * lang.c (java_dump_tree): Change return type from 'int' to 'bool'. Replace 0 and 1 with true and false in return statements. From-SVN: r64596
Diffstat (limited to 'gcc/cp/dump.c')
-rw-r--r--gcc/cp/dump.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c
index fcd2b4f..7f73a30 100644
--- a/gcc/cp/dump.c
+++ b/gcc/cp/dump.c
@@ -202,7 +202,7 @@ dump_op (dump_info_p di, tree t)
}
}
-int
+bool
cp_dump_tree (void* dump_info, tree t)
{
enum tree_code code;
@@ -223,17 +223,17 @@ cp_dump_tree (void* dump_info, tree t)
if (IDENTIFIER_OPNAME_P (t))
{
dump_string (di, "operator");
- return 1;
+ return true;
}
else if (IDENTIFIER_TYPENAME_P (t))
{
dump_child ("tynm", TREE_TYPE (t));
- return 1;
+ return true;
}
else if (t == anonymous_namespace_name)
{
dump_string (di, "unnamed");
- return 1;
+ return true;
}
break;
@@ -243,7 +243,7 @@ cp_dump_tree (void* dump_info, tree t)
dump_string (di, "ptrmem");
dump_child ("ptd", TYPE_PTRMEM_POINTED_TO_TYPE (t));
dump_child ("cls", TYPE_PTRMEM_CLASS_TYPE (t));
- return 1;
+ return true;
}
break;
@@ -254,7 +254,7 @@ cp_dump_tree (void* dump_info, tree t)
dump_string (di, "ptrmem");
dump_child ("ptd", TYPE_PTRMEM_POINTED_TO_TYPE (t));
dump_child ("cls", TYPE_PTRMEM_CLASS_TYPE (t));
- return 1;
+ return true;
}
/* Is it a type used as a base? */
@@ -262,7 +262,7 @@ cp_dump_tree (void* dump_info, tree t)
&& CLASSTYPE_AS_BASE (TYPE_CONTEXT (t)) == t)
{
dump_child ("bfld", TYPE_CONTEXT (t));
- return 1;
+ return true;
}
if (! IS_AGGR_TYPE (t))