r262317 - in /trunk/gcc: ChangeLog pretty-print...

dmalcolm@gcc.gnu.org dmalcolm@gcc.gnu.org
Mon Jul 2 20:05:00 GMT 2018


Author: dmalcolm
Date: Mon Jul  2 20:05:21 2018
New Revision: 262317

URL: https://gcc.gnu.org/viewcvs?rev=262317&root=gcc&view=rev
Log:
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.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/pretty-print.c
    trunk/gcc/selftest.c
    trunk/gcc/selftest.h



More information about the Gcc-cvs mailing list