From 1b93a502f93bfab50132642a3155196e3c0cd883 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sun, 29 Aug 1999 13:51:39 +0000 Subject: [PATCH] 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 --- gcc/java/ChangeLog | 6 ++++++ gcc/java/java-tree.h | 2 +- gcc/java/lang.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 4735ac48735..edbed36bb06 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,9 @@ +1999-08-29 Kaveh R. Ghazi + + * 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 f34b5f2f7d0..0e6e2f93ecf 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 c04410cfa1a..18fba2801ad 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__));