From b85e3643cc19d5204966f0fef82c9a941b208097 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Sat, 18 Sep 2004 00:43:42 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/tree.c | 26 +++++++++++++------------- gcc/tree.h | 2 +- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60caf01647a..d7e4698ae5b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-09-17 Zack Weinberg + + * 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 * Makefile.in (gimple-low.o): Depend on $(EXPR_H). diff --git a/gcc/tree.c b/gcc/tree.c index f0c55e0acd3..02d2ee9b0ad 100644 --- a/gcc/tree.c +++ b/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); diff --git a/gcc/tree.h b/gcc/tree.h index 83f90b7773a..289d275d23f 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -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. */ -- 2.30.2