c-pretty-print.h (struct c_pretty_print_info): Add new member "constant".
2005-12-30 Gabriel Dos Reis <gdr@integrable-solutions.net> * c-pretty-print.h (struct c_pretty_print_info): Add new member "constant". (pp_constant): New macro. * c-pretty-print.c (pp_c_pretty_printer_init): Set pp->constant. cp/ 2005-12-30 Gabriel Dos Reis <gdr@integrable-solutions.net> * cxx-pretty-print.c (pp_cxx_constant): New. Print string-literal in parens if input program says so. (pp_cxx_primary_expression): Hand off constant printing to pp_cxx_constant. (pp_cxx_pretty_printer_init): Set pp->c_base.constant. (pp_cxx_expression): Use pp_cxx_constant for literals. * error.c (dump_expr): Use pp_constant for literals. From-SVN: r109176
Showing
- gcc/ChangeLog 7 additions, 0 deletionsgcc/ChangeLog
- gcc/c-pretty-print.c 1 addition, 0 deletionsgcc/c-pretty-print.c
- gcc/c-pretty-print.h 3 additions, 0 deletionsgcc/c-pretty-print.h
- gcc/cp/ChangeLog 10 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/cxx-pretty-print.c 27 additions, 3 deletionsgcc/cp/cxx-pretty-print.c
- gcc/cp/error.c 2 additions, 9 deletionsgcc/cp/error.c
Loading
Please register or sign in to comment