From e65130238972b658dabb12bf569e5ed8dd316948 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Wed, 6 Sep 2000 18:43:35 +0000 Subject: toplev.c (display_help): Fix thinko in documentation. * toplev.c (display_help): Fix thinko in documentation. * diagnostic.h (output_buffer::indent_skip): New fields. (output_indentation): New macro. * diagnostic.c (output_indent): New function. (output_set_prefix, clear_diagnostic_info): Use. (output_emit_prefix): Predict future indentation. From-SVN: r36205 --- gcc/diagnostic.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/diagnostic.h') diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 39f650e10f5..f3ebcf86a64 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -51,6 +51,10 @@ typedef struct /* The ideal upper bound of number of characters per line, as suggested by front-end. */ int ideal_maximum_length; + + /* Indentation count. */ + int indent_skip; + /* Nonzero if current PREFIX was emitted at least once. */ int emitted_prefix_p; @@ -88,6 +92,7 @@ struct output_buffer #define output_buffer_format_args(BUFFER) *((BUFFER)->state.format_args) #define output_needs_newline(BUFFER) (BUFFER)->state.need_newline_p #define output_buffer_state(BUFFER) (BUFFER)->state +#define output_indentation(BUFFER) (BUFFER)->state.indent_skip /* This data structure bundles altogether any information relevent to the context of a diagnostic message. */ -- cgit v1.2.1