aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lang.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-08-09 23:52:36 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-08-09 23:52:36 +0000
commit0070eeda6575ef675615ddf51bf52b441a415297 (patch)
treee9922357a8da3f5c8680d60657b8771bff758fa8 /gcc/java/lang.c
parentdafbd854c75ac1bcbabb45a4d3beb5d959cb2ff5 (diff)
downloadgcc-0070eeda6575ef675615ddf51bf52b441a415297.zip
gcc-0070eeda6575ef675615ddf51bf52b441a415297.tar.gz
gcc-0070eeda6575ef675615ddf51bf52b441a415297.tar.bz2
lang.c (java_dummy_print): Constify a char*.
* lang.c (java_dummy_print): Constify a char*. (lang_print_error): Likewise. (lang_init): Remove redundant prototype for `print_error_function'. (lang_init_source): Likewise. (lang_identify): Constify a char*. From-SVN: r28635
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r--gcc/java/lang.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c
index 4064733..28fdc6d 100644
--- a/gcc/java/lang.c
+++ b/gcc/java/lang.c
@@ -451,7 +451,7 @@ lang_printable_name (decl, v)
void
lang_print_error (file)
- char *file;
+ const char *file;
{
static tree last_error_function_context = NULL_TREE;
static tree last_error_function = NULL;
@@ -488,7 +488,6 @@ void
lang_init ()
{
extern struct rtx_def * (*lang_expand_expr) ();
- extern void (*print_error_function) PROTO((char *));
#if 0
extern int flag_minimal_debug;
flag_minimal_debug = 0;
@@ -524,8 +523,9 @@ lang_init ()
print_error_function hook we don't print error messages with bogus
function prototypes. */
-void java_dummy_print (s)
- char *s __attribute__ ((__unused__));
+static void
+java_dummy_print (s)
+ const char *s __attribute__ ((__unused__));
{
}
@@ -539,7 +539,6 @@ void java_dummy_print (s)
void lang_init_source (level)
int level;
{
- extern void (*print_error_function) PROTO((char *));
if (level == 1)
print_error_function = java_dummy_print;
else
@@ -557,7 +556,7 @@ lang_finish ()
{
}
-char*
+const char *
lang_identify ()
{
return "Java";