From 7cb32822701d0ce49aae361f576c9c9dc31bb2f3 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 31 Mar 2002 22:32:05 +0000 Subject: diagnostic.c (print_error_function): Remove. * diagnostic.c (print_error_function): Remove. (default_print_error_function): Rename. (report_error_function): Update. * diagnostic.h (print_error_function): Remove. (default_print_error_function): Remove. * langhooks-def.h (struct diagnostic_context): Predeclare. (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New. (LANG_HOOKS_INITIALIZER): Update. * langhooks.h (struct diagnostic context): Predeclare. (struct lang_hooks): New hook. cp: * Make-lang.in (error.o): Update. * cp-lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine. * cp-tree.h (struct diagnostic_context): Predeclare. (cxx_print_error_function): New. * error.c: Include langhooks-def.h. (lang_print_error_function): Rename. Update. (init_error): Don't set hook. f: * com.c (lang_print_error_function): Rename. (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine. (ffe_init): Don't set hook. java: * lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine. (java_dummy_print): Remove. (lang_print_error): Rename. Exit early if inhibiting output. (inhibit_error_printing_function): New. (java_init): Don't set hook. (lang_init_source): Use new boolean. From-SVN: r51672 --- gcc/cp/cp-tree.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/cp/cp-tree.h') diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 1339fd6..b7aab09 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -34,6 +34,8 @@ Boston, MA 02111-1307, USA. */ #include "c-common.h" +struct diagnostic_context; + /* Usage of TREE_LANG_FLAG_?: 0: BINFO_MARKED (BINFO nodes). IDENTIFIER_MARKED (IDENTIFIER_NODEs) @@ -3626,6 +3628,8 @@ extern void cxx_print_xnode PARAMS ((FILE *, tree, int)); extern void cxx_print_decl PARAMS ((FILE *, tree, int)); extern void cxx_print_type PARAMS ((FILE *, tree, int)); extern void cxx_print_identifier PARAMS ((FILE *, tree, int)); +extern void cxx_print_error_function PARAMS ((struct diagnostic_context *, + const char *)); extern void cxx_set_yydebug PARAMS ((int)); extern void build_self_reference PARAMS ((void)); extern int same_signature_p PARAMS ((tree, tree)); -- cgit v1.1