* gjavah.c (cxx_keywords): Const-ification.
* keyword.gperf (java_keyword): Likewise.
* lang.c (java_tree_code_name): Likewise.
* lex.c (cxx_keywords): Likewise.
* parse.y (java_parser_context_suspend, merge_string_cste): Likewise.
From-SVN: r45564
+2001-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * gjavah.c (cxx_keywords): Const-ification.
+ * keyword.gperf (java_keyword): Likewise.
+ * lang.c (java_tree_code_name): Likewise.
+ * lex.c (cxx_keywords): Likewise.
+ * parse.y (java_parser_context_suspend, merge_string_cste): Likewise.
+
2001-09-11 Richard Henderson <rth@redhat.com>
* parse.h (ctxp_for_generation): Mark extern.
/* This is a sorted list of all C++ keywords. */
-static const char *cxx_keywords[] =
+static const char *const cxx_keywords[] =
{
"_Complex",
"__alignof",
The Free Software Foundation is independent of Sun Microsystems, Inc. */
%}
-struct java_keyword { const char *name; int token; };
+struct java_keyword { const char *const name; int token; };
#ifdef __GNUC__
__inline
#endif
of Sun Microsystems, Inc. in the United States and other countries.
The Free Software Foundation is independent of Sun Microsystems, Inc. */
-struct java_keyword { const char *name; int token; };
+struct java_keyword { const char *const name; int token; };
#ifdef __GNUC__
__inline
#endif
Used for printing out the tree and error messages. */
#define DEFTREECODE(SYM, NAME, TYPE, LEN) NAME,
-const char *java_tree_code_name[] = {
+static const char *const java_tree_code_name[] = {
"@@dummy",
#include "java-tree.def"
};
/* A sorted list of all C++ keywords. */
-static const char *cxx_keywords[] =
+static const char *const cxx_keywords[] =
{
"_Complex",
"__alignof",
java_parser_context_suspend ()
{
/* This makes debugging through java_debug_context easier */
- static const char *name = "<inner buffer context>";
+ static const char *const name = "<inner buffer context>";
/* Duplicate the previous context, use it to save the globals we're
interested in */
/* Reasonable integer constant can be treated right away */
if (TREE_CODE (op2) == INTEGER_CST && !TREE_CONSTANT_OVERFLOW (op2))
{
- static const char *boolean_true = "true";
- static const char *boolean_false = "false";
- static const char *null_pointer = "null";
+ static const char *const boolean_true = "true";
+ static const char *const boolean_false = "false";
+ static const char *const null_pointer = "null";
char ch[3];
const char *string;