aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-08-09 23:44:03 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-08-09 23:44:03 +0000
commit8df4696de9e739d6b1701127f2ccd2a757cbdba8 (patch)
tree249e8004bcb3b100bff62c3265e4ad4433ca86c8 /gcc
parentfe0aaaa5f1cd8214b553c089e0915c0e8fa6dbe9 (diff)
downloadgcc-8df4696de9e739d6b1701127f2ccd2a757cbdba8.zip
gcc-8df4696de9e739d6b1701127f2ccd2a757cbdba8.tar.gz
gcc-8df4696de9e739d6b1701127f2ccd2a757cbdba8.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/cp/decl.c5
-rw-r--r--gcc/cp/lex.c2
3 files changed, 10 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 43a7486..683277d 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 4f03693..d976f19 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -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 ();
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index d0c62b4..48a2d98 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -423,7 +423,7 @@ lang_finish ()
if (flag_gnu_xref) GNU_xref_end (errorcount+sorrycount);
}
-char *
+const char *
lang_identify ()
{
return "cplusplus";