]> gcc.gnu.org Git - gcc.git/commit
selftest: introduce class auto_fix_quotes
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 2 Jul 2018 20:05:21 +0000 (20:05 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 2 Jul 2018 20:05:21 +0000 (20:05 +0000)
commitdbf96d49454d608b5cb9e39e341e13b60ec7965e
tree2cefe7783c5b50896e82533f6e80f65347c8ef70
parent7edd4c1885f4ecc31b80f157f7aa96ccd40d1075
selftest: introduce class auto_fix_quotes

This patch moves a workaround for locale differences from a
selftest in pretty-print.c to selftest.h/c to make it reusable; I need
this for a selftest in a followup patch.

gcc/ChangeLog:
* pretty-print.c (selftest::test_pp_format): Move save and restore
of quotes to class auto_fix_quotes, and add an instance.
* selftest.c: Include "intl.h".
(selftest::auto_fix_quotes::auto_fix_quotes): New ctor.
(selftest::auto_fix_quotes::~auto_fix_quotes): New dtor.
* selftest.h (selftest::auto_fix_quotes): New class.

From-SVN: r262317
gcc/ChangeLog
gcc/pretty-print.c
gcc/selftest.c
gcc/selftest.h
This page took 0.056302 seconds and 5 git commands to generate.