Commit b85e3643 by Zack Weinberg Committed by Zack Weinberg

tree.c, tree.h (tree_class_strings): Make array const.

	* 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
parent e407d8cb
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> 2004-09-18 Andreas Schwab <schwab@suse.de>
* Makefile.in (gimple-low.o): Depend on $(EXPR_H). * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
......
...@@ -53,19 +53,19 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -53,19 +53,19 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/* Each tree code class has an associated string representation. /* Each tree code class has an associated string representation.
These must correspond to the tree_code_class entries. */ These must correspond to the tree_code_class entries. */
const char* tree_code_class_strings[] = const char *const tree_code_class_strings[] =
{ {
"exceptional", "exceptional",
"constant", "constant",
"type", "type",
"declaration", "declaration",
"reference", "reference",
"comparison", "comparison",
"unary", "unary",
"binary", "binary",
"statement", "statement",
"expression", "expression",
}; };
/* obstack.[ch] explicitly declined to prototype this. */ /* obstack.[ch] explicitly declined to prototype this. */
extern int _obstack_allocated_p (struct obstack *h, void *obj); extern int _obstack_allocated_p (struct obstack *h, void *obj);
......
...@@ -65,7 +65,7 @@ enum tree_code_class { ...@@ -65,7 +65,7 @@ enum tree_code_class {
/* Each tree code class has an associated string representation. /* Each tree code class has an associated string representation.
These must correspond to the tree_code_class entries. */ 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. */ /* Returns the string representing CLASS. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment