diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2004-05-31 15:25:51 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2004-05-31 15:25:51 +0000 |
commit | 41fd3bac90eeedbfcc63255a1139d16b733db5f2 (patch) | |
tree | 5e8925b20e37d3ca0e950c5715828aaa2272dc78 /gcc/cp/cxx-pretty-print.h | |
parent | d3157fb66d158c3f7073988cd5135da88a48a2f1 (diff) | |
download | gcc-41fd3bac90eeedbfcc63255a1139d16b733db5f2.zip gcc-41fd3bac90eeedbfcc63255a1139d16b733db5f2.tar.gz gcc-41fd3bac90eeedbfcc63255a1139d16b733db5f2.tar.bz2 |
c-pretty-print.c (pp_c_left_bracket): Make a function.
* c-pretty-print.c (pp_c_left_bracket): Make a function.
(pp_c_right_bracket): Likewise.
(pp_c_star): Likewise.
(pp_c_ampersand): Define.
* c-pretty-print.h (pp_c_left_bracket): Declare.
(pp_c_right_bracket): Likewise.
(pp_c_star): Likewise.
(pp_c_ampersand): Likewise.
cp/
* cxx-pretty-print.c (pp_cxx_colon_colon): Expor.
(pp_cxx_begin_template_argument_list): Turn into a function.
(pp_cxx_end_template_argument_list): Likewise.
(pp_cxx_separate_with): Define.
(pp_cxx_unqualified_id): Tidy.
(pp_cxx_primary_expression): Likewise.
(pp_cxx_postfix_expression): Likewise.
(pp_cxx_expression): Likewise.
(pp_cxx_simple_type_specifier): Likewise.
(pp_cxx_type_specifier_seq): Likewise.
(pp_cxx_parameter_declaration_clause): Likewise.
(pp_cxx_exception_specification): Likewise.
(pp_cxx_direct_declarator): Likewise.
(pp_cxx_type_id): Likewise.
* cxx-pretty-print.h (pp_cxx_whitespace): Export from
cxx-pretty-print.c.
(pp_cxx_left_paren): Likewise.
(pp_cxx_right_paren): Likewise.
(pp_cxx_left_brace): Likewise.
(pp_cxx_right_brace): Likewise.
(pp_cxx_left_bracket): Likewise.
(pp_cxx_right_bracket): Likewise.
(pp_cxx_dot): Likewise.
(pp_cxx_identifier): Likewise.
(pp_cxx_tree_identifier): Likewise.
(pp_cxx_ampersand): New macro.
(pp_cxx_star): Likewise.
(pp_cxx_arrow): Likewise.
(pp_cxx_semicolon): Likewise.
(pp_cxx_complement): Likewise.
(pp_cxx_begin_template_argument_list): Declaree.
(pp_cxx_end_template_argument_list): Likewise.
(pp_cxx_colon_colon): likewise.
From-SVN: r82488
Diffstat (limited to 'gcc/cp/cxx-pretty-print.h')
-rw-r--r-- | gcc/cp/cxx-pretty-print.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/cp/cxx-pretty-print.h b/gcc/cp/cxx-pretty-print.h index 46a2969..a2ce6b0 100644 --- a/gcc/cp/cxx-pretty-print.h +++ b/gcc/cp/cxx-pretty-print.h @@ -44,7 +44,29 @@ typedef struct #define pp_cxx_cv_qualifier_seq(PP, T) \ pp_c_type_qualifier_list (pp_c_base (PP), T) +#define pp_cxx_whitespace(PP) pp_c_whitespace (pp_c_base (PP)) +#define pp_cxx_left_paren(PP) pp_c_left_paren (pp_c_base (PP)) +#define pp_cxx_right_paren(PP) pp_c_right_paren (pp_c_base (PP)) +#define pp_cxx_left_brace(PP) pp_c_left_brace (pp_c_base (PP)) +#define pp_cxx_right_brace(PP) pp_c_right_brace (pp_c_base (PP)) +#define pp_cxx_left_bracket(PP) pp_c_left_bracket (pp_c_base (PP)) +#define pp_cxx_right_bracket(PP) pp_c_right_bracket (pp_c_base (PP)) +#define pp_cxx_dot(PP) pp_c_dot (pp_c_base (PP)) +#define pp_cxx_ampersand(PP) pp_c_ampersand (pp_c_base (PP)) +#define pp_cxx_star(PP) pp_c_star (pp_c_base (PP)) +#define pp_cxx_arrow(PP) pp_c_arrow (pp_c_base (PP)) +#define pp_cxx_semicolon(PP) pp_c_semicolon (pp_c_base (PP)) +#define pp_cxx_complement(PP) pp_c_complement (pp_c_base (PP)) + +#define pp_cxx_identifier(PP, I) pp_c_identifier (pp_c_base (PP), I) +#define pp_cxx_tree_identifier(PP, T) \ + pp_c_tree_identifier (pp_c_base (PP), T) + void pp_cxx_pretty_printer_init (cxx_pretty_printer *); +void pp_cxx_begin_template_argument_list (cxx_pretty_printer *); +void pp_cxx_end_template_argument_list (cxx_pretty_printer *); +void pp_cxx_colon_colon (cxx_pretty_printer *); +void pp_cxx_separate_with (cxx_pretty_printer *, int); void pp_cxx_declaration (cxx_pretty_printer *, tree); void pp_cxx_function_definition (cxx_pretty_printer *, tree); |