diff options
author | Gabriel Dos Reis <gdr@codesourcery.com> | 2000-09-06 18:43:35 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2000-09-06 18:43:35 +0000 |
commit | e65130238972b658dabb12bf569e5ed8dd316948 (patch) | |
tree | 16f3efac73c54ac9d4bfcc86c3e390ff99b00405 /gcc/diagnostic.h | |
parent | 112c7aeab151b463751a3b7ea085f4080c7ce83a (diff) | |
download | gcc-e65130238972b658dabb12bf569e5ed8dd316948.tar.gz |
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
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 5 |
1 files changed, 5 insertions, 0 deletions
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. */ |