summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.h
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-22 20:20:32 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-22 20:20:32 +0000
commit96c5803173876ffe8c0d94ca30583a31d938b151 (patch)
tree6e3cf53c4db37bf3a9f13b535e5f44d61b730a26 /gcc/diagnostic.h
parentc1a0ebbbc52a5e454c7684ef7e9a45a896b72dfd (diff)
downloadgcc-96c5803173876ffe8c0d94ca30583a31d938b151.tar.gz
* diagnostic.h (output_buffer_state): New macro.
* diagnostic.c (diagnostic_for_decl, sorry, default_print_error_function, output_do_verbatim, report_diagnostic, report_problematic_module): Use it. (wrap_text): Tweak. (output_format): Use wrap_text instead of maybe_wrap_text. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35891 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r--gcc/diagnostic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
index e93a77b3b12..196f3f76b1f 100644
--- a/gcc/diagnostic.h
+++ b/gcc/diagnostic.h
@@ -87,6 +87,7 @@ struct output_buffer
#define output_buffer_text_cursor(BUFFER) (BUFFER)->state.cursor
#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
/* This data structure bundles altogether any information relevent to
the context of a diagnostic message. */