diff options
author | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2001-06-28 12:26:38 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2001-06-28 12:26:38 +0000 |
commit | 46f018e13847446f543aa9b396de15c9e322f8b3 (patch) | |
tree | 729c52b32f832217f832454115fb06e918991ec2 /gcc/cp | |
parent | eeb35b4552717ded7a8e006854be6766bb6237c4 (diff) | |
download | gcc-46f018e13847446f543aa9b396de15c9e322f8b3.zip gcc-46f018e13847446f543aa9b396de15c9e322f8b3.tar.gz gcc-46f018e13847446f543aa9b396de15c9e322f8b3.tar.bz2 |
diagnostic.c (default_print_error_function): Tweak.
* diagnostic.c (default_print_error_function): Tweak.
(report_error_function): Likewise.
* toplev.h (default_print_error_function): Move to...
* diagnostic.h: ...here. Add a `diagnostic_context *' parameter.
* tree.h (print_error_function): Move to...
* diagnostic.h: ...here. Add a `diagnostic_context *' parameter.
ch/
* lang.c: #include diagnostic.h
(chill_print_error_function): Add a dummy `diagnostic_context *'.
* Makefile.in (lang.o): Depend on diagnostic.h
cp/
* error.c (lang_print_error_function): Add a `diagnostic_context *'
parameter. Tweak.
f/
* Make-lang.in (f/com.o): Depend on diagnostic.h
* com.c: #include diagnostic.h
(lang_print_error_function): Take a 'diagnostic_context *'.
java/
* lang.c: #include diagnostic.h
(lang_print_error): Add a `diagnostic_context *' parameter.
(java_dummy_print): Likewise.
* Make-lang.in (JAVA_LEX_C): Depend on diagnostic.h
From-SVN: r43638
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/error.c | 16 |
2 files changed, 14 insertions, 7 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4e1abda..b0a186f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2001-06-28 Gabriel Dos Reis <gdr@merlin.codesourcery.com> + + * error.c (lang_print_error_function): Add a `diagnostic_context *' + parameter. Tweak. + 2001-06-27 Neil Booth <neil@cat.daikokuya.demon.co.uk> * decl2.c (import_export_class): Update. diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 5a8522a..3bb043d 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -116,7 +116,8 @@ static void dump_scope PARAMS ((tree, int)); static void dump_template_parms PARAMS ((tree, int, int)); static const char *function_category PARAMS ((tree)); -static void lang_print_error_function PARAMS ((const char *)); +static void lang_print_error_function PARAMS ((diagnostic_context *, + const char *)); static void maybe_print_instantiation_context PARAMS ((output_buffer *)); static void print_instantiation_full_context PARAMS ((output_buffer *)); static void print_instantiation_partial_context PARAMS ((output_buffer *, tree, @@ -2470,16 +2471,17 @@ cv_to_string (p, v) } static void -lang_print_error_function (file) +lang_print_error_function (context, file) + diagnostic_context *context; const char *file; { output_state os; - default_print_error_function (file); - os = output_buffer_state (diagnostic_buffer); - output_set_prefix (diagnostic_buffer, file); - maybe_print_instantiation_context (diagnostic_buffer); - output_buffer_state (diagnostic_buffer) = os; + default_print_error_function (context, file); + os = output_buffer_state (context); + output_set_prefix ((output_buffer *)context, file); + maybe_print_instantiation_context ((output_buffer *)context); + output_buffer_state (context) = os; } static void |