aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@merlin.codesourcery.com>2002-04-14 23:35:36 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2002-04-14 23:35:36 +0000
commitbd6bec6be2be7b11880547fecd9df1c6fcb3fbdb (patch)
tree66b07837c16817e692a056798f570c35b8bab971 /gcc/cp/error.c
parentf20c0d98a7ed7843f317dd0d74c7dc7d2c239d10 (diff)
downloadgcc-bd6bec6be2be7b11880547fecd9df1c6fcb3fbdb.zip
gcc-bd6bec6be2be7b11880547fecd9df1c6fcb3fbdb.tar.gz
gcc-bd6bec6be2be7b11880547fecd9df1c6fcb3fbdb.tar.bz2
diagnostic.h (output_buffer_state): Redefine.
* diagnostic.h (output_buffer_state): Redefine. (output_format_decoder): New macro. (output_prefixing_rule): Likewise. (output_line_cutoff): Likewise. (diagnostic_format_decoder): Adjust. (diagnostic_prefixing_rule): Likewise. (diagnostic_line_cutoff): Likewise. (diagnostic_state): Likewise. (diagnostic_kind_count): Likewise. (diagnostic_buffer): Now a macro. * diagnostic.c (diagnostic_buffer): Remove definition. (output_is_line_wrapping): Adjust. (set_real_maximum_length): Likewise. (output_set_maximum_length): Likewise. (init_output_buffer): Likewise. (lhd_print_error_function): Likewise. (output_do_verbatim): Likewise. cp/ * error.c (cxx_print_error_function): Adjust call to macros. From-SVN: r52307
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 579f584..63b09be 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -2382,10 +2382,10 @@ cxx_print_error_function (context, file)
output_state os;
lhd_print_error_function (context, file);
- os = output_buffer_state (context);
+ os = diagnostic_state (context);
output_set_prefix ((output_buffer *)context, file);
maybe_print_instantiation_context ((output_buffer *)context);
- output_buffer_state (context) = os;
+ diagnostic_state (context) = os;
}
static void