diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-09-12 16:21:12 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-09-12 16:21:12 +0000 |
commit | fd033052f96f8e4c62f981e6923371f0d58278ca (patch) | |
tree | f688b4f2187b5454d9c4305a6522c2901bddc1ed /gcc/java/parse.y | |
parent | a8b7afb969789d5e4b4557c89e49151107eb7df1 (diff) | |
download | gcc-fd033052f96f8e4c62f981e6923371f0d58278ca.zip gcc-fd033052f96f8e4c62f981e6923371f0d58278ca.tar.gz gcc-fd033052f96f8e4c62f981e6923371f0d58278ca.tar.bz2 |
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
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 0c544fb..62f231c 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -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; |