Commit 8df4696d by Kaveh R. Ghazi Committed by Kaveh Ghazi

decl.c: Remove redundant prototype for `print_error_function'.

        * decl.c: Remove redundant prototype for `print_error_function'.
        (lang_print_error_function): Constify a char*.

        * lex.c (lang_identify): Likewise.

From-SVN: r28633
parent fe0aaaa5
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> 1999-08-09 Bernd Schmidt <bernds@cygnus.co.uk>
* Makefile.in: Update dependencies. * Makefile.in: Update dependencies.
......
...@@ -60,7 +60,6 @@ extern int static_labelno; ...@@ -60,7 +60,6 @@ extern int static_labelno;
extern tree current_namespace; extern tree current_namespace;
extern tree global_namespace; extern tree global_namespace;
extern void (*print_error_function) PROTO((char *));
extern int (*valid_lang_attribute) PROTO ((tree, tree, tree, tree)); extern int (*valid_lang_attribute) PROTO ((tree, tree, tree, tree));
/* Obstack used for remembering local class declarations (like /* Obstack used for remembering local class declarations (like
...@@ -169,7 +168,7 @@ static void record_unknown_type PROTO((tree, const char *)); ...@@ -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 int member_function_or_else PROTO((tree, tree, const char *));
static void bad_specifiers PROTO((tree, const char *, int, int, int, int, static void bad_specifiers PROTO((tree, const char *, int, 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 tree maybe_process_template_type_declaration PROTO((tree, int, struct binding_level*));
static void check_for_uninitialized_const_var PROTO((tree)); static void check_for_uninitialized_const_var PROTO((tree));
static unsigned long typename_hash PROTO((hash_table_key)); static unsigned long typename_hash PROTO((hash_table_key));
...@@ -6632,7 +6631,7 @@ init_decl_processing () ...@@ -6632,7 +6631,7 @@ init_decl_processing ()
static void static void
lang_print_error_function (file) lang_print_error_function (file)
char *file; const char *file;
{ {
default_print_error_function (file); default_print_error_function (file);
maybe_print_template_context (); maybe_print_template_context ();
......
...@@ -423,7 +423,7 @@ lang_finish () ...@@ -423,7 +423,7 @@ lang_finish ()
if (flag_gnu_xref) GNU_xref_end (errorcount+sorrycount); if (flag_gnu_xref) GNU_xref_end (errorcount+sorrycount);
} }
char * const char *
lang_identify () lang_identify ()
{ {
return "cplusplus"; return "cplusplus";
......
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