]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-common.h (c_dump_tree), [...]): Change return type from 'int' to 'bool'.
authorNathanael Nerode <neroden@gcc.gnu.org>
Wed, 19 Mar 2003 20:34:10 +0000 (20:34 +0000)
committerNathanael Nerode <neroden@gcc.gnu.org>
Wed, 19 Mar 2003 20:34:10 +0000 (20:34 +0000)
(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

gcc/ChangeLog
gcc/c-common.h
gcc/c-dump.c
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/dump.c
gcc/java/ChangeLog
gcc/java/lang.c
gcc/langhooks-def.h
gcc/langhooks.c
gcc/langhooks.h

index afe3065afcbd361ae818baca81ff0078929421e3..7a8272c86e66fec6ec974c5cd33f821354870905 100644 (file)
@@ -1,3 +1,11 @@
+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.
index b4a14a39b1c011403a34e64cab1537ff07e24341..b174f58e44bf0f1ad5c555820dc72f79eee937cf 100644 (file)
@@ -1281,7 +1281,7 @@ struct c_fileinfo
 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,
index 541910b6b9d5df1bf8bab9f60a16df3b60fbe81e..7f3464b38a03d7d106fe9c1fb33a43284371bc10 100644 (file)
@@ -49,7 +49,7 @@ dump_next_stmt (di, t)
 
 /* Dump any C-specific tree codes and attributes of common codes.  */
 
-int
+bool
 c_dump_tree (dump_info, t)
      void *dump_info;
      tree t;
@@ -194,5 +194,5 @@ c_dump_tree (dump_info, t)
       break;
     }
 
-  return 0;
+  return false;
 }
index de07dfe5122f3ecbdfc115e63d2f7cbca412574a..d5864cd7dea06aef5d6815380b2c98844547b57f 100644 (file)
@@ -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
index 587acbcdad5ac1c7ea78a52ba9508074694be45c..f8ded19f7c7299878905ba95e15c57f74984e485 100644 (file)
@@ -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++ */
 
index fcd2b4f30dff45bbe03dda84d5982ae8f3f5c9c9..7f73a3085e3e38f52471c32fbd8f1bac3258b12f 100644 (file)
@@ -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))
index 8f0c3be7261dbe6aa6ea19b1ba8011d688fe4c7d..db5651b37e2b1729dbde5eb253f616e04f27b6ea 100644 (file)
@@ -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.
index 41441bf128fedd81181053eb04943ceb6839db08..031ddcc38b81802e58116df0735d70d6a5346f0e 100644 (file)
@@ -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"
index afec80614e06f138137d4a595014e27f709ba698..4315eab91e7750445add45ac6ba2275edff7e2c4 100644 (file)
@@ -183,7 +183,7 @@ void write_global_declarations PARAMS ((void));
 }
 
 /* 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
index cf343ebbbcba55a84e8b0eb70d48df106cf3be1f..16592a9b3f71a71584dbed699bd7b5c522731137 100644 (file)
@@ -426,12 +426,12 @@ lhd_tree_inlining_convert_parm_for_inlining (parm, value, fndecl)
    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
index 4696c6f07ce4677fe764e91d37f147eed235dbe2..82454952397fed467c262e4135a390eee8ced71b 100644 (file)
@@ -90,7 +90,7 @@ struct lang_hooks_for_tree_dump
 {
   /* 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));