]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/error.c
c-pretty-print.h (struct c_pretty_print_info): Add new member "constant".
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Fri, 30 Dec 2005 17:27:28 +0000 (17:27 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Fri, 30 Dec 2005 17:27:28 +0000 (17:27 +0000)
commita176426f3573d5eceb4f60caf01a291ab778e475
treeffda47dc57c458a506ebdbf3be62d77501367c05
parentcf013e9fdbd98b7798cbd88f126000c72361c56c
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
gcc/ChangeLog
gcc/c-pretty-print.c
gcc/c-pretty-print.h
gcc/cp/ChangeLog
gcc/cp/cxx-pretty-print.c
gcc/cp/error.c
This page took 0.063796 seconds and 5 git commands to generate.