aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
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/java
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/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/lang.c24
2 files changed, 17 insertions, 12 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 8f0c3be..db5651b 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
+
+ * lang.c (java_dump_tree): Change return type from 'int' to 'bool'.
+ Replace 0 and 1 with true and false in return statements.
+
2003-03-19 Tom Tromey <tromey@redhat.com>
* lex.c (do_java_lex): Renamed from java_lex.
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index 41441bf..031ddcc 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -69,7 +69,7 @@ static int java_unsafe_for_reeval (tree);
static int merge_init_test_initialization (void * *, void *);
static int inline_init_test_initialization (void * *, void *);
static bool java_can_use_bit_fields_p (void);
-static int java_dump_tree (void *, tree);
+static bool java_dump_tree (void *, tree);
static void dump_compound_expr (dump_info_p, tree);
#ifndef TARGET_OBJECT_SUFFIX
@@ -1050,7 +1050,7 @@ dump_compound_expr (dump_info_p di, tree t)
}
}
-static int
+static bool
java_dump_tree (void *dump_info, tree t)
{
enum tree_code code;
@@ -1073,29 +1073,29 @@ java_dump_tree (void *dump_info, tree t)
dump_child ("body", DECL_FUNCTION_BODY (t));
if (DECL_LANG_SPECIFIC (t) && !dump_flag (di, TDF_SLIM, t))
dump_child ("inline body", DECL_SAVED_TREE (t));
- return 1;
+ return true;
case RETURN_EXPR:
dump_child ("expr", TREE_OPERAND (t, 0));
- return 1;
+ return true;
case GOTO_EXPR:
dump_child ("goto", TREE_OPERAND (t, 0));
- return 1;
+ return true;
case LABEL_EXPR:
dump_child ("label", TREE_OPERAND (t, 0));
- return 1;
+ return true;
case LABELED_BLOCK_EXPR:
dump_child ("label", TREE_OPERAND (t, 0));
dump_child ("block", TREE_OPERAND (t, 1));
- return 1;
+ return true;
case EXIT_BLOCK_EXPR:
dump_child ("block", TREE_OPERAND (t, 0));
dump_child ("val", TREE_OPERAND (t, 1));
- return 1;
+ return true;
case BLOCK:
if (BLOCK_EXPR_BODY (t))
@@ -1114,17 +1114,17 @@ java_dump_tree (void *dump_info, tree t)
block = TREE_CHAIN (block);
}
}
- return 1;
+ return true;
case COMPOUND_EXPR:
if (!dump_flag (di, TDF_SLIM, t))
- return 0;
+ return false;
dump_compound_expr (di, t);
- return 1;
+ return true;
default:
break;
}
- return 0;
+ return false;
}
#include "gt-java-lang.h"