aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-08-29 13:51:39 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-08-29 13:51:39 +0000
commit1b93a502f93bfab50132642a3155196e3c0cd883 (patch)
treec9173db02be4b9c183b7d099143efa7b71d74e15 /gcc/java
parent4b731ffa592b354d3938d0bc094c6ec3efa6e3a7 (diff)
downloadgcc-1b93a502f93bfab50132642a3155196e3c0cd883.zip
gcc-1b93a502f93bfab50132642a3155196e3c0cd883.tar.gz
gcc-1b93a502f93bfab50132642a3155196e3c0cd883.tar.bz2
java-tree.h (lang_printable_name): Constify a char*.
* java-tree.h (lang_printable_name): Constify a char*. * lang.c (lang_printable_name): Likewise. From-SVN: r28970
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog6
-rw-r--r--gcc/java/java-tree.h2
-rw-r--r--gcc/java/lang.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 4735ac4..edbed36 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,9 @@
+1999-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * java-tree.h (lang_printable_name): Constify a char*.
+
+ * lang.c (lang_printable_name): Likewise.
+
Fri Aug 27 23:31:57 1999 Jeffrey A Law (law@cygnus.com)
* gjavah.c, jcf-write.c, verify.c: Do not use C++ style
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h
index f34b5f2..0e6e2f9 100644
--- a/gcc/java/java-tree.h
+++ b/gcc/java/java-tree.h
@@ -565,7 +565,7 @@ extern tree prepare_eh_table_type PROTO ((tree));
extern void java_set_exception_lang_code PROTO ((void));
extern tree generate_name PROTO ((void));
extern void pop_labeled_block PROTO ((void));
-extern char *lang_printable_name PROTO ((tree, int));
+extern const char *lang_printable_name PROTO ((tree, int));
extern tree maybe_add_interface PROTO ((tree, tree));
extern void set_super_info PROTO ((int, tree, tree, int));
extern int get_access_flags_from_decl PROTO ((tree));
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index c04410c..18fba28 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -440,7 +440,7 @@ put_decl_node (node)
The value of the hook decl_printable_name is this function,
which is also called directly by lang_print_error. */
-char *
+const char *
lang_printable_name (decl, v)
tree decl;
int v __attribute__ ((__unused__));