mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-22 11:41:07 +08:00
gjavah.c (cxx_keywords): Const-ification.
* 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
This commit is contained in:
parent
a8b7afb969
commit
fd033052f9
@ -1,3 +1,11 @@
|
||||
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.
|
||||
|
@ -390,7 +390,7 @@ utf8_cmp (str, length, name)
|
||||
|
||||
/* This is a sorted list of all C++ keywords. */
|
||||
|
||||
static const char *cxx_keywords[] =
|
||||
static const char *const cxx_keywords[] =
|
||||
{
|
||||
"_Complex",
|
||||
"__alignof",
|
||||
|
@ -25,7 +25,7 @@ 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
|
||||
|
@ -25,7 +25,7 @@ Java and all Java-based marks are trademarks or registered trademarks
|
||||
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
|
||||
|
@ -89,7 +89,7 @@ int java_tree_code_length[] = {
|
||||
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"
|
||||
};
|
||||
|
@ -1822,7 +1822,7 @@ utf8_cmp (str, length, name)
|
||||
|
||||
/* A sorted list of all C++ keywords. */
|
||||
|
||||
static const char *cxx_keywords[] =
|
||||
static const char *const cxx_keywords[] =
|
||||
{
|
||||
"_Complex",
|
||||
"__alignof",
|
||||
|
@ -2774,7 +2774,7 @@ static void
|
||||
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 */
|
||||
@ -13902,9 +13902,9 @@ merge_string_cste (op1, op2, after)
|
||||
/* 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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user