summaryrefslogtreecommitdiff
path: root/gcc/pretty-print.h
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-12 18:34:51 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-12 18:34:51 +0000
commit8e10b18fdb80b976dace5d092f60e02741bb974f (patch)
treeb1a38ce7e84fb408f819801ff4a4661e61e604cb /gcc/pretty-print.h
parent9c348f2df163c8711eb9f23af92dc98e3d00c284 (diff)
downloadgcc-8e10b18fdb80b976dace5d092f60e02741bb974f.tar.gz
* diagnostic.h (output_formatted_scalar): Rename from
output_formatted_integer. * diagnostic.def: Add DK_DEBUG. * diagnostic.c (output_decimal): Adjust. (output_long_decimal): Likewise. (output_unsigned_decimal): Likewise. (output_octal): Likewise. (output_long_octal): Likewise. (output_hexadecimal): Likewise. (output_long_hexadecimal): Likewise. * c-pretty-print.c (pp_c_type_specifier): New function. (pp_c_specifier_qualifier_list): Likewise. (pp_c_abstract_declarator): Likewise. (pp_c_char): Replace pp_format_integer with pp_format_scalar. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56236 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/pretty-print.h')
-rw-r--r--gcc/pretty-print.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/pretty-print.h b/gcc/pretty-print.h
index 958e1ee9e5c..5efb9e73078 100644
--- a/gcc/pretty-print.h
+++ b/gcc/pretty-print.h
@@ -84,10 +84,11 @@ struct pretty_print_info
pp_character (PPI, C); \
pp_whitespace (PPI); \
} while (0)
-#define pp_format_integer(PPI, F, I) \
- output_formatted_integer (pp_buffer (PPI), F, I)
+#define pp_format_scalar(PPI, F, S) \
+ output_formatted_scalar (pp_buffer (PPI), F, S)
#define pp_wide_integer(PPI, I) \
- pp_format_integer (PPI, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT) I)
+ pp_format_scalar (PPI, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT) I)
+#define pp_pointer(PPI, P) pp_format_scalar (PPI, "%p", p)
#define pp_identifier(PPI, ID) output_add_string (pp_buffer (PPI), ID)
#define pp_tree_identifier(PPI, T) pp_identifier(PPI, IDENTIFIER_POINTER (T))