* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64596
138bc75d-0d04-0410-961f-
82ee72b054a4
+2003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
+
+ * 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.
+
2003-03-19 Kevin Buettner <kevinb@redhat.com>
* dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
struct c_fileinfo *get_fileinfo PARAMS ((const char *));
extern void dump_time_statistics PARAMS ((void));
-extern int c_dump_tree PARAMS ((void *, tree));
+extern bool c_dump_tree PARAMS ((void *, tree));
extern void pch_init PARAMS ((void));
extern int c_common_valid_pch PARAMS ((cpp_reader *pfile,
/* Dump any C-specific tree codes and attributes of common codes. */
-int
+bool
c_dump_tree (dump_info, t)
void *dump_info;
tree t;
break;
}
- return 0;
+ return false;
}
+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
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++ */
}
}
-int
+bool
cp_dump_tree (void* dump_info, tree t)
{
enum tree_code code;
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;
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;
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? */
&& CLASSTYPE_AS_BASE (TYPE_CONTEXT (t)) == t)
{
dump_child ("bfld", TYPE_CONTEXT (t));
- return 1;
+ return true;
}
if (! IS_AGGR_TYPE (t))
+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.
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
}
}
-static int
+static bool
java_dump_tree (void *dump_info, tree t)
{
enum tree_code code;
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))
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"
}
/* Tree dump hooks. */
-int lhd_tree_dump_dump_tree PARAMS ((void *, tree));
+bool lhd_tree_dump_dump_tree PARAMS ((void *, tree));
int lhd_tree_dump_type_quals PARAMS ((tree));
#define LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN lhd_tree_dump_dump_tree
nodes. Returns nonzero if it does not want the usual dumping of the
second argument. */
-int
+bool
lhd_tree_dump_dump_tree (di, t)
void *di ATTRIBUTE_UNUSED;
tree t ATTRIBUTE_UNUSED;
{
- return 0;
+ return false;
}
/* lang_hooks.tree_dump.type_qual: Determine type qualifiers in a
{
/* Dump language-specific parts of tree nodes. Returns nonzero if it
does not want the usual dumping of the second argument. */
- int (*dump_tree) PARAMS ((void *, tree));
+ bool (*dump_tree) PARAMS ((void *, tree));
/* Determine type qualifiers in a language-specific way. */
int (*type_quals) PARAMS ((tree));