mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 18:29:47 +08:00
diagnostic.c (output_add_identifier): New fn.
* diagnostic.c (output_add_identifier): New fn. * diagnostic.h: Declare it. From-SVN: r57066
This commit is contained in:
parent
db4c55f693
commit
236a2ac8cc
@ -1,5 +1,8 @@
|
||||
2002-09-12 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* diagnostic.c (output_add_identifier): New fn.
|
||||
* diagnostic.h: Declare it.
|
||||
|
||||
* calls.c (store_one_arg): Use size_in_bytes to determine the
|
||||
amount of space to push.
|
||||
|
||||
|
@ -463,6 +463,16 @@ output_add_string (buffer, str)
|
||||
maybe_wrap_text (buffer, str, str + (str ? strlen (str) : 0));
|
||||
}
|
||||
|
||||
/* Append an identifier ID to BUFFER. */
|
||||
void
|
||||
output_add_identifier (buffer, id)
|
||||
output_buffer *buffer;
|
||||
tree id;
|
||||
{
|
||||
output_append (buffer, IDENTIFIER_POINTER (id),
|
||||
IDENTIFIER_POINTER (id) + IDENTIFIER_LENGTH (id));
|
||||
}
|
||||
|
||||
/* Flush the content of BUFFER onto the attached stream,
|
||||
and reinitialize. */
|
||||
|
||||
|
@ -316,6 +316,7 @@ extern void output_add_character PARAMS ((output_buffer *, int));
|
||||
extern void output_decimal PARAMS ((output_buffer *, int));
|
||||
extern void output_add_string PARAMS ((output_buffer *,
|
||||
const char *));
|
||||
extern void output_add_identifier PARAMS ((output_buffer *, tree));
|
||||
extern const char *output_finalize_message PARAMS ((output_buffer *));
|
||||
extern void output_clear_message_text PARAMS ((output_buffer *));
|
||||
extern void output_printf PARAMS ((output_buffer *, const char *,
|
||||
|
Loading…
Reference in New Issue
Block a user