mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-09 03:00:27 +08:00
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
This commit is contained in:
parent
e407d8cb49
commit
b85e3643cc
@ -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).
|
||||
|
26
gcc/tree.c
26
gcc/tree.c
@ -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);
|
||||
|
@ -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. */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user