lang.c (java_dummy_print): Constify a char*.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 9 Aug 1999 23:52:36 +0000 (23:52 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 9 Aug 1999 23:52:36 +0000 (23:52 +0000)
        * 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

gcc/java/ChangeLog
gcc/java/lang.c

index 7cb3cd924ea719b514bac06b6f326bc14482f294..525d6c4ced710e4e996c827302d6e844aee2cc92 100644 (file)
@@ -1,3 +1,11 @@
+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>
 
        * javaop.h (WORD_TO_FLOAT): only inline if building with gcc.
index 40647336440225349daefbc3456a2dce71c5b744..28fdc6dee62c268a89c882229876854b46b4c5a6 100644 (file)
@@ -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";