diff options
author | Gabriel Dos Reis <gdr@nerim.net> | 2002-07-29 08:26:45 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2002-07-29 08:26:45 +0000 |
commit | f63c45ec8ec382ccd7d056cf60edf410414491ef (patch) | |
tree | 2363601d56cb77885f5b17bf887c20e645e9de31 /gcc/diagnostic.h | |
parent | 789161102e21a16827d4d6c8b2b75d9a4a805ed7 (diff) | |
download | gcc-f63c45ec8ec382ccd7d056cf60edf410414491ef.tar.gz |
pretty-print.h: Define more macros.
* pretty-print.h: Define more macros.
* diagnostic.h (output_formatted_integer): Moved from...
* diagnostic.c: ... here.
From-SVN: r55833
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index c4238df6aba..52d749acc48 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -160,6 +160,14 @@ struct output_buffer /* True if BUFFER is in line-wrapping mode. */ #define output_is_line_wrapping(BUFFER) (output_line_cutoff (BUFFER) > 0) +#define output_formatted_integer(BUFFER, FORMAT, INTEGER) \ + do \ + { \ + sprintf ((BUFFER)->digit_buffer, FORMAT, INTEGER); \ + output_add_string (BUFFER, (BUFFER)->digit_buffer); \ + } \ + while (0) + /* Forward declarations. */ typedef struct diagnostic_context diagnostic_context; typedef void (*diagnostic_starter_fn) PARAMS ((diagnostic_context *, |