Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
26ff2117
Commit
26ff2117
authored
Jul 24, 2002
by
Gabriel Dos Reis
Committed by
Gabriel Dos Reis
Jul 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pretty-print.h: Add macros from cp/error.c `:w
* pretty-print.h: Add macros from cp/error.c `:w From-SVN: r55703
parent
6364054f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
14 deletions
+27
-14
gcc/ChangeLog
+4
-0
gcc/pretty-print.h
+23
-14
No files found.
gcc/ChangeLog
View file @
26ff2117
2002-07-24 Gabriel Dos Reis <gdr@nerim.net>
* pretty-print.h: Add macros from cp/error.c
2002-07-24 Alan Modra <amodra@bigpond.net.au>
* config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
...
...
gcc/pretty-print.h
View file @
26ff2117
...
...
@@ -29,30 +29,39 @@ typedef struct pretty_print_info pretty_print_info;
/* The type of pretty-printer flags passed to clients. */
typedef
unsigned
int
pp_flags
;
/* The type of pretty-print styles. */
enum
pp_style
enum
pp_padding
{
pp_standard_c
,
pp_gnu_c
,
pp_standard_cxx
,
pp_gnu_cxx
pp_none
,
pp_before
,
pp_after
};
struct
pretty_print_info
{
/* The entity to pretty-print. */
tree
entity
;
tree
scope
;
enum
pp_style
style
;
pp_flags
flags
;
/* Where to put whitespace around the entity being formatted. */
enum
pp_padding
padding
;
/* Where we print external representation of ENTITY. */
output_buffer
*
buffer
;
/* Client extenion hook. */
void
*
x_data
;
void
(
*
print_declaration
)
(
pretty_print_info
*
);
void
(
*
print_statement
)
(
pretty_print_info
*
);
void
(
*
print_expression
)
(
pretty_print_info
*
);
};
#define pp_sorry_for_unsupported_tree(PPI, T) \
output_verbatim ((PPI)->buffer, "\nsorry: `%s' not supported by %s\n",\
tree_code_name[(int) TREE_CODE (T)], __FUNCTION__)
#define pp_left_paren(PPI) output_add_character ((PPI)->buffer, '(')
#define pp_right_paren(PPI) output_add_character ((PPI)->buffer, ')')
#define pp_left_bracket(PPI) output_add_character ((PPI)->buffer, '[')
#define pp_right_bracket(PPI) output_add_character ((PPI)->buffer, '[')
#define pp_semi_colon(PPI) output_add_character ((PPI)->buffer, ';')
#define pp_comma(PPI) output_add_string ((PPI)->buffer, ", ")
#define pp_dot(PPI) output_add_character ((PPI)->buffer, '.')
#define pp_colon(PPI) output_add_character ((PPI)->buffer, ':')
#define pp_colon_colon(PPI) output_add_string ((PPI)->buffer, "::")
#define pp_quote(PPI) output_add_character ((PPI)->buffer, '\'')
#define pp_backquote(PPI) output_add_character ((PPI)->buffer, '`')
#define pp_doublequote(PPI) output_add_character ((PPI)->buffer, '"')
#endif
/* GCC_PRETTY_PRINT_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment