Commit 0070eeda by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent dafbd854
1999-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* 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*.
1999-08-09 Tom Tromey <tromey@cygnus.com> 1999-08-09 Tom Tromey <tromey@cygnus.com>
* javaop.h (WORD_TO_FLOAT): only inline if building with gcc. * javaop.h (WORD_TO_FLOAT): only inline if building with gcc.
......
...@@ -451,7 +451,7 @@ lang_printable_name (decl, v) ...@@ -451,7 +451,7 @@ lang_printable_name (decl, v)
void void
lang_print_error (file) lang_print_error (file)
char *file; const char *file;
{ {
static tree last_error_function_context = NULL_TREE; static tree last_error_function_context = NULL_TREE;
static tree last_error_function = NULL; static tree last_error_function = NULL;
...@@ -488,7 +488,6 @@ void ...@@ -488,7 +488,6 @@ void
lang_init () lang_init ()
{ {
extern struct rtx_def * (*lang_expand_expr) (); extern struct rtx_def * (*lang_expand_expr) ();
extern void (*print_error_function) PROTO((char *));
#if 0 #if 0
extern int flag_minimal_debug; extern int flag_minimal_debug;
flag_minimal_debug = 0; flag_minimal_debug = 0;
...@@ -524,8 +523,9 @@ lang_init () ...@@ -524,8 +523,9 @@ lang_init ()
print_error_function hook we don't print error messages with bogus print_error_function hook we don't print error messages with bogus
function prototypes. */ function prototypes. */
void java_dummy_print (s) static void
char *s __attribute__ ((__unused__)); java_dummy_print (s)
const char *s __attribute__ ((__unused__));
{ {
} }
...@@ -539,7 +539,6 @@ void java_dummy_print (s) ...@@ -539,7 +539,6 @@ void java_dummy_print (s)
void lang_init_source (level) void lang_init_source (level)
int level; int level;
{ {
extern void (*print_error_function) PROTO((char *));
if (level == 1) if (level == 1)
print_error_function = java_dummy_print; print_error_function = java_dummy_print;
else else
...@@ -557,7 +556,7 @@ lang_finish () ...@@ -557,7 +556,7 @@ lang_finish ()
{ {
} }
char* const char *
lang_identify () lang_identify ()
{ {
return "Java"; return "Java";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment