decl.c: Remove redundant prototype for `print_error_function'.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 9 Aug 1999 23:44:03 +0000 (23:44 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 9 Aug 1999 23:44:03 +0000 (23:44 +0000)
        * decl.c: Remove redundant prototype for `print_error_function'.
        (lang_print_error_function): Constify a char*.

        * lex.c (lang_identify): Likewise.

From-SVN: r28633

gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/lex.c

index 43a7486625bbd94d09627a2f4cd3304d63d792fd..683277d9c0f36706632394714c124721b9992b4f 100644 (file)
@@ -1,3 +1,10 @@
+1999-08-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+        * decl.c: Remove redundant prototype for `print_error_function'.
+        (lang_print_error_function): Constify a char*.
+
+        * lex.c (lang_identify): Likewise.
+
 1999-08-09  Bernd Schmidt  <bernds@cygnus.co.uk>
 
        * Makefile.in: Update dependencies.
index 4f0369368ec08433cb85c642c606cb0eee6342e7..d976f19e5618cd77fd736d8596f356ff8a736491 100644 (file)
@@ -60,7 +60,6 @@ extern int static_labelno;
 extern tree current_namespace;
 extern tree global_namespace;
 
-extern void (*print_error_function) PROTO((char *));
 extern int (*valid_lang_attribute) PROTO ((tree, tree, tree, tree));
 
 /* Obstack used for remembering local class declarations (like
@@ -169,7 +168,7 @@ static void record_unknown_type PROTO((tree, const char *));
 static int member_function_or_else PROTO((tree, tree, const char *));
 static void bad_specifiers PROTO((tree, const char *, int, int, int, int,
                                  int));
-static void lang_print_error_function PROTO((char *));
+static void lang_print_error_function PROTO((const char *));
 static tree maybe_process_template_type_declaration PROTO((tree, int, struct binding_level*));
 static void check_for_uninitialized_const_var PROTO((tree));
 static unsigned long typename_hash PROTO((hash_table_key));
@@ -6632,7 +6631,7 @@ init_decl_processing ()
 
 static void
 lang_print_error_function (file)
-     char *file;
+     const char *file;
 {
   default_print_error_function (file);
   maybe_print_template_context ();
index d0c62b4ec87fb16b0e55263ebd251871a29f1f73..48a2d9889b3cad965ee45349b237c1d3822dbbd3 100644 (file)
@@ -423,7 +423,7 @@ lang_finish ()
   if (flag_gnu_xref) GNU_xref_end (errorcount+sorrycount);
 }
 
-char *
+const char *
 lang_identify ()
 {
   return "cplusplus";