]>
Commit | Line | Data |
---|---|---|
6aaae39a | 1 | /* Various declarations for language-independent pretty-print subroutines. |
8d9254fc | 2 | Copyright (C) 2002-2020 Free Software Foundation, Inc. |
6aaae39a GDR |
3 | Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net> |
4 | ||
5 | This file is part of GCC. | |
6 | ||
7 | GCC is free software; you can redistribute it and/or modify it under | |
8 | the terms of the GNU General Public License as published by the Free | |
9dcd6f09 | 9 | Software Foundation; either version 3, or (at your option) any later |
6aaae39a GDR |
10 | version. |
11 | ||
12 | GCC is distributed in the hope that it will be useful, but WITHOUT ANY | |
13 | WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 | for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
9dcd6f09 NC |
18 | along with GCC; see the file COPYING3. If not see |
19 | <http://www.gnu.org/licenses/>. */ | |
6aaae39a GDR |
20 | |
21 | #ifndef GCC_PRETTY_PRINT_H | |
22 | #define GCC_PRETTY_PRINT_H | |
23 | ||
b6fe0bb8 | 24 | #include "obstack.h" |
b6fe0bb8 | 25 | |
39ce81c9 ZW |
26 | /* Maximum number of format string arguments. */ |
27 | #define PP_NL_ARGMAX 30 | |
28 | ||
b6fe0bb8 GDR |
29 | /* The type of a text to be formatted according a format specification |
30 | along with a list of things. */ | |
b066401f | 31 | struct text_info |
b6fe0bb8 GDR |
32 | { |
33 | const char *format_spec; | |
34 | va_list *args_ptr; | |
35 | int err_no; /* for %m */ | |
cf835838 | 36 | void **x_data; |
8a645150 | 37 | rich_location *m_richloc; |
2a2703a2 | 38 | |
85204e23 DM |
39 | void set_location (unsigned int idx, location_t loc, |
40 | enum range_display_kind range_display_kind); | |
8a645150 | 41 | location_t get_location (unsigned int index_of_location) const; |
b066401f | 42 | }; |
b6fe0bb8 GDR |
43 | |
44 | /* How often diagnostics are prefixed by their locations: | |
45 | o DIAGNOSTICS_SHOW_PREFIX_NEVER: never - not yet supported; | |
46 | o DIAGNOSTICS_SHOW_PREFIX_ONCE: emit only once; | |
47 | o DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE: emit each time a physical | |
48 | line is started. */ | |
b066401f | 49 | enum diagnostic_prefixing_rule_t |
b6fe0bb8 GDR |
50 | { |
51 | DIAGNOSTICS_SHOW_PREFIX_ONCE = 0x0, | |
52 | DIAGNOSTICS_SHOW_PREFIX_NEVER = 0x1, | |
53 | DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE = 0x2 | |
b066401f | 54 | }; |
b6fe0bb8 | 55 | |
39ce81c9 | 56 | /* The chunk_info data structure forms a stack of the results from the |
b066401f GDR |
57 | first phase of formatting (pp_format) which have not yet been |
58 | output (pp_output_formatted_text). A stack is necessary because | |
39ce81c9 ZW |
59 | the diagnostic starter may decide to generate its own output by way |
60 | of the formatter. */ | |
61 | struct chunk_info | |
62 | { | |
63 | /* Pointer to previous chunk on the stack. */ | |
64 | struct chunk_info *prev; | |
65 | ||
66 | /* Array of chunks to output. Each chunk is a NUL-terminated string. | |
67 | In the first phase of formatting, even-numbered chunks are | |
68 | to be output verbatim, odd-numbered chunks are format specifiers. | |
69 | The second phase replaces all odd-numbered chunks with formatted | |
70 | text, and the third phase simply emits all the chunks in sequence | |
71 | with appropriate line-wrapping. */ | |
72 | const char *args[PP_NL_ARGMAX * 2]; | |
73 | }; | |
74 | ||
b6fe0bb8 GDR |
75 | /* The output buffer datatype. This is best seen as an abstract datatype |
76 | whose fields should not be accessed directly by clients. */ | |
6c1dae73 | 77 | class output_buffer |
b6fe0bb8 | 78 | { |
6c1dae73 | 79 | public: |
da6ca2b5 | 80 | output_buffer (); |
025311c4 | 81 | ~output_buffer (); |
da6ca2b5 | 82 | |
b8698a0f | 83 | /* Obstack where the text is built up. */ |
39ce81c9 ZW |
84 | struct obstack formatted_obstack; |
85 | ||
86 | /* Obstack containing a chunked representation of the format | |
87 | specification plus arguments. */ | |
88 | struct obstack chunk_obstack; | |
89 | ||
90 | /* Currently active obstack: one of the above two. This is used so | |
91 | that the text formatters don't need to know which phase we're in. */ | |
92 | struct obstack *obstack; | |
93 | ||
94 | /* Stack of chunk arrays. These come from the chunk_obstack. */ | |
95 | struct chunk_info *cur_chunk_array; | |
b6fe0bb8 GDR |
96 | |
97 | /* Where to output formatted text. */ | |
98 | FILE *stream; | |
99 | ||
b8698a0f | 100 | /* The amount of characters output so far. */ |
b6fe0bb8 GDR |
101 | int line_length; |
102 | ||
103 | /* This must be large enough to hold any printed integer or | |
104 | floating-point value. */ | |
105 | char digit_buffer[128]; | |
48749dbc MLI |
106 | |
107 | /* Nonzero means that text should be flushed when | |
108 | appropriate. Otherwise, text is buffered until either | |
109 | pp_really_flush or pp_clear_output_area are called. */ | |
110 | bool flush_p; | |
b066401f | 111 | }; |
6aaae39a | 112 | |
c4100eae MLI |
113 | /* Finishes constructing a NULL-terminated character string representing |
114 | the buffered text. */ | |
115 | static inline const char * | |
116 | output_buffer_formatted_text (output_buffer *buff) | |
117 | { | |
118 | obstack_1grow (buff->obstack, '\0'); | |
119 | return (const char *) obstack_base (buff->obstack); | |
120 | } | |
121 | ||
122 | /* Append to the output buffer a string specified by its | |
123 | STARTing character and LENGTH. */ | |
124 | static inline void | |
125 | output_buffer_append_r (output_buffer *buff, const char *start, int length) | |
126 | { | |
41d9f1e0 | 127 | gcc_checking_assert (start); |
c4100eae | 128 | obstack_grow (buff->obstack, start, length); |
01e1dea3 DM |
129 | for (int i = 0; i < length; i++) |
130 | if (start[i] == '\n') | |
131 | buff->line_length = 0; | |
132 | else | |
133 | buff->line_length++; | |
c4100eae MLI |
134 | } |
135 | ||
136 | /* Return a pointer to the last character emitted in the | |
137 | output_buffer. A NULL pointer means no character available. */ | |
138 | static inline const char * | |
139 | output_buffer_last_position_in_text (const output_buffer *buff) | |
140 | { | |
141 | const char *p = NULL; | |
142 | struct obstack *text = buff->obstack; | |
143 | ||
144 | if (obstack_base (text) != obstack_next_free (text)) | |
145 | p = ((const char *) obstack_next_free (text)) - 1; | |
146 | return p; | |
147 | } | |
148 | ||
149 | ||
6aaae39a GDR |
150 | /* The type of pretty-printer flags passed to clients. */ |
151 | typedef unsigned int pp_flags; | |
152 | ||
b066401f | 153 | enum pp_padding |
6aaae39a | 154 | { |
26ff2117 | 155 | pp_none, pp_before, pp_after |
b066401f | 156 | }; |
6aaae39a | 157 | |
39ce81c9 ZW |
158 | /* Structure for switching in and out of verbatim mode in a convenient |
159 | manner. */ | |
b066401f | 160 | struct pp_wrapping_mode_t |
39ce81c9 ZW |
161 | { |
162 | /* Current prefixing rule. */ | |
163 | diagnostic_prefixing_rule_t rule; | |
164 | ||
165 | /* The ideal upper bound of number of characters per line, as suggested | |
b8698a0f | 166 | by front-end. */ |
39ce81c9 | 167 | int line_cutoff; |
b066401f | 168 | }; |
39ce81c9 ZW |
169 | |
170 | /* Maximum characters per line in automatic line wrapping mode. | |
171 | Zero means don't wrap lines. */ | |
b066401f | 172 | #define pp_line_cutoff(PP) (PP)->wrapping.line_cutoff |
39ce81c9 ZW |
173 | |
174 | /* Prefixing rule used in formatting a diagnostic message. */ | |
b066401f | 175 | #define pp_prefixing_rule(PP) (PP)->wrapping.rule |
39ce81c9 ZW |
176 | |
177 | /* Get or set the wrapping mode as a single entity. */ | |
b066401f | 178 | #define pp_wrapping_mode(PP) (PP)->wrapping |
39ce81c9 | 179 | |
2e808a78 | 180 | /* The type of a hook that formats client-specific data onto a pretty_printer. |
b6fe0bb8 GDR |
181 | A client-supplied formatter returns true if everything goes well, |
182 | otherwise it returns false. */ | |
39ce81c9 | 183 | typedef bool (*printer_fn) (pretty_printer *, text_info *, const char *, |
ce95abc4 | 184 | int, bool, bool, bool, bool *, const char **); |
b6fe0bb8 GDR |
185 | |
186 | /* Client supplied function used to decode formats. */ | |
b066401f | 187 | #define pp_format_decoder(PP) (PP)->format_decoder |
b6fe0bb8 | 188 | |
f012c8ef DM |
189 | /* Base class for an optional client-supplied object for doing additional |
190 | processing between stages 2 and 3 of formatted printing. */ | |
191 | class format_postprocessor | |
192 | { | |
193 | public: | |
194 | virtual ~format_postprocessor () {} | |
368877a1 | 195 | virtual format_postprocessor *clone() const = 0; |
f012c8ef DM |
196 | virtual void handle (pretty_printer *) = 0; |
197 | }; | |
198 | ||
b6fe0bb8 GDR |
199 | /* TRUE if a newline character needs to be added before further |
200 | formatting. */ | |
b066401f | 201 | #define pp_needs_newline(PP) (PP)->need_newline |
b6fe0bb8 | 202 | |
fa10beec | 203 | /* True if PRETTY-PRINTER is in line-wrapping mode. */ |
b6fe0bb8 GDR |
204 | #define pp_is_wrapping_line(PP) (pp_line_cutoff (PP) > 0) |
205 | ||
b6fe0bb8 | 206 | /* The amount of whitespace to be emitted when starting a new line. */ |
b066401f | 207 | #define pp_indentation(PP) (PP)->indent_skip |
b6fe0bb8 | 208 | |
f41c4af3 JM |
209 | /* True if identifiers are translated to the locale character set on |
210 | output. */ | |
b066401f | 211 | #define pp_translate_identifiers(PP) (PP)->translate_identifiers |
f41c4af3 | 212 | |
4b84d650 | 213 | /* True if colors should be shown. */ |
b066401f | 214 | #define pp_show_color(PP) (PP)->show_color |
4b84d650 | 215 | |
b6fe0bb8 GDR |
216 | /* The data structure that contains the bare minimum required to do |
217 | proper pretty-printing. Clients may derived from this structure | |
218 | and add additional fields they need. */ | |
6c1dae73 | 219 | class pretty_printer |
6aaae39a | 220 | { |
6c1dae73 | 221 | public: |
653fee19 DM |
222 | /* Default construct a pretty printer with specified |
223 | maximum line length cut off limit. */ | |
224 | explicit pretty_printer (int = 0); | |
368877a1 | 225 | explicit pretty_printer (const pretty_printer &other); |
da6ca2b5 | 226 | |
025311c4 GDR |
227 | virtual ~pretty_printer (); |
228 | ||
368877a1 DM |
229 | virtual pretty_printer *clone () const; |
230 | ||
6aaae39a GDR |
231 | /* Where we print external representation of ENTITY. */ |
232 | output_buffer *buffer; | |
b6fe0bb8 | 233 | |
653fee19 DM |
234 | /* The prefix for each new line. If non-NULL, this is "owned" by the |
235 | pretty_printer, and will eventually be free-ed. */ | |
236 | char *prefix; | |
b8698a0f | 237 | |
f63c45ec GDR |
238 | /* Where to put whitespace around the entity being formatted. */ |
239 | pp_padding padding; | |
b8698a0f | 240 | |
b6fe0bb8 | 241 | /* The real upper bound of number of characters per line, taking into |
b8698a0f | 242 | account the case of a very very looong prefix. */ |
b6fe0bb8 GDR |
243 | int maximum_length; |
244 | ||
b6fe0bb8 GDR |
245 | /* Indentation count. */ |
246 | int indent_skip; | |
247 | ||
39ce81c9 ZW |
248 | /* Current wrapping mode. */ |
249 | pp_wrapping_mode_t wrapping; | |
b6fe0bb8 GDR |
250 | |
251 | /* If non-NULL, this function formats a TEXT into the BUFFER. When called, | |
252 | TEXT->format_spec points to a format code. FORMAT_DECODER should call | |
253 | pp_string (and related functions) to add data to the BUFFER. | |
254 | FORMAT_DECODER can read arguments from *TEXT->args_pts using VA_ARG. | |
255 | If the BUFFER needs additional characters from the format string, it | |
256 | should advance the TEXT->format_spec as it goes. When FORMAT_DECODER | |
257 | returns, TEXT->format_spec should point to the last character processed. | |
f012c8ef DM |
258 | The QUOTE and BUFFER_PTR are passed in, to allow for deferring-handling |
259 | of format codes (e.g. %H and %I in the C++ frontend). */ | |
b6fe0bb8 GDR |
260 | printer_fn format_decoder; |
261 | ||
f012c8ef DM |
262 | /* If non-NULL, this is called by pp_format once after all format codes |
263 | have been processed, to allow for client-specific postprocessing. | |
264 | This is used by the C++ frontend for handling the %H and %I | |
265 | format codes (which interract with each other). */ | |
266 | format_postprocessor *m_format_postprocessor; | |
267 | ||
b6fe0bb8 GDR |
268 | /* Nonzero if current PREFIX was emitted at least once. */ |
269 | bool emitted_prefix; | |
270 | ||
271 | /* Nonzero means one should emit a newline before outputting anything. */ | |
272 | bool need_newline; | |
f41c4af3 JM |
273 | |
274 | /* Nonzero means identifiers are translated to the locale character | |
275 | set on output. */ | |
276 | bool translate_identifiers; | |
4b84d650 JJ |
277 | |
278 | /* Nonzero means that text should be colorized. */ | |
279 | bool show_color; | |
d2608235 DM |
280 | |
281 | /* Nonzero means that URLs should be emitted. */ | |
282 | bool show_urls; | |
6aaae39a GDR |
283 | }; |
284 | ||
9fec0042 | 285 | static inline const char * |
b066401f | 286 | pp_get_prefix (const pretty_printer *pp) { return pp->prefix; } |
e1a4dd13 | 287 | |
8f7ace48 GDR |
288 | #define pp_space(PP) pp_character (PP, ' ') |
289 | #define pp_left_paren(PP) pp_character (PP, '(') | |
290 | #define pp_right_paren(PP) pp_character (PP, ')') | |
291 | #define pp_left_bracket(PP) pp_character (PP, '[') | |
292 | #define pp_right_bracket(PP) pp_character (PP, ']') | |
293 | #define pp_left_brace(PP) pp_character (PP, '{') | |
294 | #define pp_right_brace(PP) pp_character (PP, '}') | |
295 | #define pp_semicolon(PP) pp_character (PP, ';') | |
07838b13 | 296 | #define pp_comma(PP) pp_character (PP, ',') |
8f7ace48 GDR |
297 | #define pp_dot(PP) pp_character (PP, '.') |
298 | #define pp_colon(PP) pp_character (PP, ':') | |
299 | #define pp_colon_colon(PP) pp_string (PP, "::") | |
300 | #define pp_arrow(PP) pp_string (PP, "->") | |
301 | #define pp_equal(PP) pp_character (PP, '=') | |
302 | #define pp_question(PP) pp_character (PP, '?') | |
303 | #define pp_bar(PP) pp_character (PP, '|') | |
137a1a27 | 304 | #define pp_bar_bar(PP) pp_string (PP, "||") |
8f7ace48 GDR |
305 | #define pp_carret(PP) pp_character (PP, '^') |
306 | #define pp_ampersand(PP) pp_character (PP, '&') | |
137a1a27 | 307 | #define pp_ampersand_ampersand(PP) pp_string (PP, "&&") |
8f7ace48 | 308 | #define pp_less(PP) pp_character (PP, '<') |
137a1a27 | 309 | #define pp_less_equal(PP) pp_string (PP, "<=") |
8f7ace48 | 310 | #define pp_greater(PP) pp_character (PP, '>') |
137a1a27 | 311 | #define pp_greater_equal(PP) pp_string (PP, ">=") |
8f7ace48 GDR |
312 | #define pp_plus(PP) pp_character (PP, '+') |
313 | #define pp_minus(PP) pp_character (PP, '-') | |
314 | #define pp_star(PP) pp_character (PP, '*') | |
315 | #define pp_slash(PP) pp_character (PP, '/') | |
316 | #define pp_modulo(PP) pp_character (PP, '%') | |
317 | #define pp_exclamation(PP) pp_character (PP, '!') | |
318 | #define pp_complement(PP) pp_character (PP, '~') | |
319 | #define pp_quote(PP) pp_character (PP, '\'') | |
320 | #define pp_backquote(PP) pp_character (PP, '`') | |
321 | #define pp_doublequote(PP) pp_character (PP, '"') | |
07838b13 | 322 | #define pp_underscore(PP) pp_character (PP, '_') |
12ea3302 GDR |
323 | #define pp_maybe_newline_and_indent(PP, N) \ |
324 | if (pp_needs_newline (PP)) pp_newline_and_indent (PP, N) | |
8f7ace48 GDR |
325 | #define pp_scalar(PP, FORMAT, SCALAR) \ |
326 | do \ | |
327 | { \ | |
328 | sprintf (pp_buffer (PP)->digit_buffer, FORMAT, SCALAR); \ | |
329 | pp_string (PP, pp_buffer (PP)->digit_buffer); \ | |
330 | } \ | |
b6fe0bb8 GDR |
331 | while (0) |
332 | #define pp_decimal_int(PP, I) pp_scalar (PP, "%d", I) | |
aa547a51 RG |
333 | #define pp_unsigned_wide_integer(PP, I) \ |
334 | pp_scalar (PP, HOST_WIDE_INT_PRINT_UNSIGNED, (unsigned HOST_WIDE_INT) I) | |
807e902e KZ |
335 | #define pp_wide_int(PP, W, SGN) \ |
336 | do \ | |
337 | { \ | |
338 | print_dec (W, pp_buffer (PP)->digit_buffer, SGN); \ | |
339 | pp_string (PP, pp_buffer (PP)->digit_buffer); \ | |
340 | } \ | |
341 | while (0) | |
204839e7 | 342 | #define pp_double(PP, F) pp_scalar (PP, "%f", F) |
b6fe0bb8 | 343 | #define pp_pointer(PP, P) pp_scalar (PP, "%p", P) |
6aaae39a | 344 | |
f41c4af3 JM |
345 | #define pp_identifier(PP, ID) pp_string (PP, (pp_translate_identifiers (PP) \ |
346 | ? identifier_to_locale (ID) \ | |
347 | : (ID))) | |
26ff2117 | 348 | |
b6fe0bb8 | 349 | |
b066401f | 350 | #define pp_buffer(PP) (PP)->buffer |
b6fe0bb8 | 351 | |
b066401f | 352 | extern void pp_set_line_maximum_length (pretty_printer *, int); |
653fee19 DM |
353 | extern void pp_set_prefix (pretty_printer *, char *); |
354 | extern char *pp_take_prefix (pretty_printer *); | |
b066401f GDR |
355 | extern void pp_destroy_prefix (pretty_printer *); |
356 | extern int pp_remaining_character_count_for_line (pretty_printer *); | |
357 | extern void pp_clear_output_area (pretty_printer *); | |
358 | extern const char *pp_formatted_text (pretty_printer *); | |
359 | extern const char *pp_last_position_in_text (const pretty_printer *); | |
360 | extern void pp_emit_prefix (pretty_printer *); | |
361 | extern void pp_append_text (pretty_printer *, const char *, const char *); | |
0fc80001 GDR |
362 | extern void pp_newline_and_flush (pretty_printer *); |
363 | extern void pp_newline_and_indent (pretty_printer *, int); | |
364 | extern void pp_separate_with (pretty_printer *, char); | |
971801ff | 365 | |
6976ae51 JM |
366 | /* If we haven't already defined a front-end-specific diagnostics |
367 | style, use the generic one. */ | |
368 | #ifdef GCC_DIAG_STYLE | |
369 | #define GCC_PPDIAG_STYLE GCC_DIAG_STYLE | |
370 | #else | |
371 | #define GCC_PPDIAG_STYLE __gcc_diag__ | |
372 | #endif | |
373 | ||
718f9c0f | 374 | /* This header may be included before diagnostics-core.h, hence the duplicate |
971801ff JM |
375 | definitions to allow for GCC-specific formats. */ |
376 | #if GCC_VERSION >= 3005 | |
6976ae51 | 377 | #define ATTRIBUTE_GCC_PPDIAG(m, n) __attribute__ ((__format__ (GCC_PPDIAG_STYLE, m ,n))) ATTRIBUTE_NONNULL(m) |
971801ff JM |
378 | #else |
379 | #define ATTRIBUTE_GCC_PPDIAG(m, n) ATTRIBUTE_NONNULL(m) | |
380 | #endif | |
381 | extern void pp_printf (pretty_printer *, const char *, ...) | |
382 | ATTRIBUTE_GCC_PPDIAG(2,3); | |
383 | ||
2c8b1096 KG |
384 | extern void pp_verbatim (pretty_printer *, const char *, ...) |
385 | ATTRIBUTE_GCC_PPDIAG(2,3); | |
b066401f | 386 | extern void pp_flush (pretty_printer *); |
48749dbc | 387 | extern void pp_really_flush (pretty_printer *); |
b066401f GDR |
388 | extern void pp_format (pretty_printer *, text_info *); |
389 | extern void pp_output_formatted_text (pretty_printer *); | |
390 | extern void pp_format_verbatim (pretty_printer *, text_info *); | |
391 | ||
392 | extern void pp_indent (pretty_printer *); | |
393 | extern void pp_newline (pretty_printer *); | |
394 | extern void pp_character (pretty_printer *, int); | |
395 | extern void pp_string (pretty_printer *, const char *); | |
a326a3de | 396 | |
7eba871a SB |
397 | extern void pp_write_text_to_stream (pretty_printer *); |
398 | extern void pp_write_text_as_dot_label_to_stream (pretty_printer *, bool); | |
a326a3de DM |
399 | extern void pp_write_text_as_html_like_dot_to_stream (pretty_printer *pp); |
400 | ||
b066401f | 401 | extern void pp_maybe_space (pretty_printer *); |
b6fe0bb8 | 402 | |
ce95abc4 DM |
403 | extern void pp_begin_quote (pretty_printer *, bool); |
404 | extern void pp_end_quote (pretty_printer *, bool); | |
405 | ||
d2608235 DM |
406 | extern void pp_begin_url (pretty_printer *pp, const char *url); |
407 | extern void pp_end_url (pretty_printer *pp); | |
408 | ||
39ce81c9 ZW |
409 | /* Switch into verbatim mode and return the old mode. */ |
410 | static inline pp_wrapping_mode_t | |
411 | pp_set_verbatim_wrapping_ (pretty_printer *pp) | |
412 | { | |
413 | pp_wrapping_mode_t oldmode = pp_wrapping_mode (pp); | |
414 | pp_line_cutoff (pp) = 0; | |
415 | pp_prefixing_rule (pp) = DIAGNOSTICS_SHOW_PREFIX_NEVER; | |
416 | return oldmode; | |
417 | } | |
b066401f | 418 | #define pp_set_verbatim_wrapping(PP) pp_set_verbatim_wrapping_ (PP) |
39ce81c9 | 419 | |
a3af5087 | 420 | extern const char *identifier_to_locale (const char *); |
ab9b814d JM |
421 | extern void *(*identifier_to_locale_alloc) (size_t); |
422 | extern void (*identifier_to_locale_free) (void *); | |
a3af5087 | 423 | |
dc3f3805 RS |
424 | /* Print I to PP in decimal. */ |
425 | ||
426 | inline void | |
427 | pp_wide_integer (pretty_printer *pp, HOST_WIDE_INT i) | |
428 | { | |
429 | pp_scalar (pp, HOST_WIDE_INT_PRINT_DEC, i); | |
430 | } | |
431 | ||
432 | template<unsigned int N, typename T> | |
433 | void pp_wide_integer (pretty_printer *pp, const poly_int_pod<N, T> &); | |
434 | ||
6aaae39a | 435 | #endif /* GCC_PRETTY_PRINT_H */ |