diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-23 17:28:25 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-23 17:28:25 +0000 |
commit | 83af9cb1835ca4fbc77400f1ac6465b5ccb82170 (patch) | |
tree | 7b39cf093a88c1aec0218061f4a7916c30cf1fe1 /gcc/diagnostic.h | |
parent | 17e3940f78a884966adb8cc63bf91b675331c99a (diff) | |
download | gcc-83af9cb1835ca4fbc77400f1ac6465b5ccb82170.tar.gz |
* diagnostic.c (output_to_stream): Rename to
output_buffer_to_stream. Loses the stream parameter.
(init_output_buffer): Set diagnosic_buffer's stream.
(flush_diagnostic_buffer): Adjust.
(default_print_error_function): Likewise.
(finish_diagnostic): Likewise.
(verbatim): Likewise.
* diagnostic.h (struct output_buffer): Add `stream' field.
(output_buffer_attached_stream): New macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39999 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 5217e384b9d..eb7594e16fc 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -80,6 +80,8 @@ struct output_buffer /* Internal data. These fields should not be accessed directly by front-ends. */ + /* Where to output formatted text. */ + FILE* stream; /* The obstack where the text is built up. */ struct obstack obstack; /* The amount of characters output so far. */ @@ -88,6 +90,7 @@ struct output_buffer output_state state; }; +#define output_buffer_attached_stream(BUFFER) (BUFFER)->stream #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 |