diff options
author | Nathanael Nerode <neroden@gcc.gnu.org> | 2003-03-19 20:34:10 +0000 |
---|---|---|
committer | Nathanael Nerode <neroden@gcc.gnu.org> | 2003-03-19 20:34:10 +0000 |
commit | 2bd3ecadd83939fd4bc531d4f6ab11e2326892b4 (patch) | |
tree | f55a99d28f04841642f126e415df18047f0526cd /gcc/cp | |
parent | 784fb70e84d78a83a6599824b8b5e44eb85ba633 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 2 | ||||
-rw-r--r-- | gcc/cp/dump.c | 14 |
3 files changed, 14 insertions, 8 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index de07dfe..d5864cd 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2003-03-19 Nathanael Nerode <neroden@gcc.gnu.org> + + * 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. + 2003-03-19 Jason Merrill <jason@redhat.com> PR c++/8316, c++/9315, c++/10136 diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 587acbc..f8ded19 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -4407,7 +4407,7 @@ extern tree mangle_guard_variable (tree); extern tree mangle_ref_init_variable (tree); /* in dump.c */ -extern int cp_dump_tree (void *, tree); +extern bool cp_dump_tree (void *, tree); /* -- end of C++ */ 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)) |