actions.c (lang_identify): Constify a char*.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 9 Aug 1999 23:41:20 +0000 (23:41 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 9 Aug 1999 23:41:20 +0000 (23:41 +0000)
        * actions.c (lang_identify): Constify a char*.

        * lang.c (chill_print_error_function): Likewise.
        (lang_init): Remove redundant prototype for `print_error_function'.

From-SVN: r28632

gcc/ch/ChangeLog
gcc/ch/actions.c
gcc/ch/lang.c

index 2e5d95f500b7a325680d8b5fb045a7f90f8edcdb..529c93c770e39c65b80a0e0269272e7cb0ce8761 100644 (file)
@@ -1,3 +1,10 @@
+1999-08-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+        * actions.c (lang_identify): Constify a char*.
+
+        * lang.c (chill_print_error_function): Likewise.
+        (lang_init): Remove redundant prototype for `print_error_function'.
+
 1999-07-25  Richard Henderson  <rth@cygnus.com>
 
        * decl.c (va_list_type_node): New.
index 4104ce7a86b5e6f954919f9b68024d907fc74e0b..e44e215c6f791e16b736b835cf8bb6d534c44c5f 100644 (file)
@@ -64,7 +64,7 @@ extern char *dump_base_name;
    grant file written, generating no code. */
 int grant_only_flag = 0;
 \f
-char *
+const char *
 lang_identify ()
 {
   return "chill";
index 794c59212696d7ffa6964f9c593ea7be6d997b9f..f09316b8a265ff6ef3e69a9f37e48dcda03d4459 100644 (file)
@@ -236,7 +236,7 @@ lang_decode_option (argc, argv)
 
 void
 chill_print_error_function (file)
-     char *file;
+     const char *file;
 {
   static tree last_error_function = NULL_TREE;
   static struct module *last_error_module = NULL;
@@ -283,8 +283,6 @@ incomplete_type_error (value, type)
 void
 lang_init ()
 {
-  extern void (*print_error_function) PROTO((char*));
-
   chill_real_input_filename = input_filename;
 
   /* the beginning of the file is a new line; check for # */