diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-23 10:46:49 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-23 10:46:49 +0000 |
commit | b8ab5fbc4fbfd490f8930ff7cf28c736df92d7fd (patch) | |
tree | a220392ed347512ec6a0763fab4d85bfe02bf2ee /gcc/pretty-print.h | |
parent | 65e3f67337959cddb1ebe633e3b31a856c6e9a08 (diff) | |
download | gcc-b8ab5fbc4fbfd490f8930ff7cf28c736df92d7fd.tar.gz |
* pretty-print.h (pp_newline_and_flush): Declare. Remove macro
definition.
(pp_newline_and_indent): Likewise.
(pp_separate_with): Likewise.
* pretty-print.c (pp_newline_and_flush): Define.
(pp_newline_and_indent): Likewise.
(pp_separate_with): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201940 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/pretty-print.h')
-rw-r--r-- | gcc/pretty-print.h | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/gcc/pretty-print.h b/gcc/pretty-print.h index 4c47e2b1a25..9b9b2cf29ff 100644 --- a/gcc/pretty-print.h +++ b/gcc/pretty-print.h @@ -246,26 +246,8 @@ pp_get_prefix (const pretty_printer *pp) { return pp->prefix; } #define pp_backquote(PP) pp_character (PP, '`') #define pp_doublequote(PP) pp_character (PP, '"') #define pp_underscore(PP) pp_character (PP, '_') -#define pp_newline_and_flush(PP) \ - do { \ - pp_newline (PP); \ - pp_flush (PP); \ - pp_needs_newline (PP) = false; \ - } while (0) -#define pp_newline_and_indent(PP, N) \ - do { \ - pp_indentation (PP) += N; \ - pp_newline (PP); \ - pp_indent (PP); \ - pp_needs_newline (PP) = false; \ - } while (0) #define pp_maybe_newline_and_indent(PP, N) \ if (pp_needs_newline (PP)) pp_newline_and_indent (PP, N) -#define pp_separate_with(PP, C) \ - do { \ - pp_character (PP, C); \ - pp_space (PP); \ - } while (0) #define pp_scalar(PP, FORMAT, SCALAR) \ do \ { \ @@ -298,6 +280,9 @@ extern const char *pp_formatted_text (pretty_printer *); extern const char *pp_last_position_in_text (const pretty_printer *); extern void pp_emit_prefix (pretty_printer *); extern void pp_append_text (pretty_printer *, const char *, const char *); +extern void pp_newline_and_flush (pretty_printer *); +extern void pp_newline_and_indent (pretty_printer *, int); +extern void pp_separate_with (pretty_printer *, char); /* If we haven't already defined a front-end-specific diagnostics style, use the generic one. */ |