tree.c, tree.h (tree_class_strings): Make array const.
authorZack Weinberg <zack@codesourcery.com>
Sat, 18 Sep 2004 00:43:42 +0000 (00:43 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 18 Sep 2004 00:43:42 +0000 (00:43 +0000)
* tree.c, tree.h (tree_class_strings): Make array const.
Reindent per coding convention.  Move asterisk to proper place
per coding convention.

From-SVN: r87685

gcc/ChangeLog
gcc/tree.c
gcc/tree.h

index 60caf01647a320d221e3bc4f1179fd471dd2ad2d..d7e4698ae5b0bbce06fac3b883d8352f9e9d6aaf 100644 (file)
@@ -1,3 +1,9 @@
+2004-09-17  Zack Weinberg  <zack@codesourcery.com>
+
+       * tree.c, tree.h (tree_class_strings): Make array const.
+       Reindent per coding convention.  Move asterisk to proper place
+       per coding convention.
+
 2004-09-18  Andreas Schwab  <schwab@suse.de>
 
        * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
index f0c55e0acd3b5b1c722cf5f9ee5da7c61984ba98..02d2ee9b0adda455ada96825ddddc9a08189b846 100644 (file)
@@ -53,19 +53,19 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 /* Each tree code class has an associated string representation.
    These must correspond to the tree_code_class entries.  */
 
-const char* tree_code_class_strings[] =
-  {
-    "exceptional",
-    "constant",
-    "type",
-    "declaration",
-    "reference",
-    "comparison",
-    "unary",
-    "binary",
-    "statement",
-    "expression",
-  };
+const char *const tree_code_class_strings[] =
+{
+  "exceptional",
+  "constant",
+  "type",
+  "declaration",
+  "reference",
+  "comparison",
+  "unary",
+  "binary",
+  "statement",
+  "expression",
+};
 
 /* obstack.[ch] explicitly declined to prototype this.  */
 extern int _obstack_allocated_p (struct obstack *h, void *obj);
index 83f90b7773a50f65307749717d49c83de7cc941c..289d275d23fa51a9db7d4ac6abe07eedc9ff43af 100644 (file)
@@ -65,7 +65,7 @@ enum tree_code_class {
 /* Each tree code class has an associated string representation.
    These must correspond to the tree_code_class entries.  */
 
-extern const char* tree_code_class_strings[];
+extern const char *const tree_code_class_strings[];
 
 /* Returns the string representing CLASS.  */