c1x-uni-string-1.c, [...]: New tests.
gcc/testsuite: * gcc.dg/c1x-uni-string-1.c, gcc.dg/c1x-uni-string-2.c: New tests. libcpp: * include/cpplib.h (struct cpp_options): Add rliterals. * init.c (struct lang_flags, lang_defaults): Add rliterals. (cpp_set_lang): Set rliterals option. (cpp_init_builtins): Define __STDC_UTF_16__ and __STDC_UTF_32__. * lex.c (_cpp_lex_direct): Only accept raw strings if rliterals. From-SVN: r177868
This commit is contained in:
parent
3b6fa7a5c6
commit
a48e3dd10e
7 changed files with 167 additions and 20 deletions
|
@ -1,6 +1,6 @@
|
|||
/* Definitions for CPP library.
|
||||
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
|
||||
2004, 2005, 2007, 2008, 2009, 2010
|
||||
2004, 2005, 2007, 2008, 2009, 2010, 2011
|
||||
Free Software Foundation, Inc.
|
||||
Written by Per Bothner, 1994-95.
|
||||
|
||||
|
@ -315,6 +315,10 @@ struct cpp_options
|
|||
/* Nonzero means process u/U prefix literals (UTF-16/32). */
|
||||
unsigned char uliterals;
|
||||
|
||||
/* Nonzero means process r/R rax strings. If this is set, uliterals
|
||||
must be set as well. */
|
||||
unsigned char rliterals;
|
||||
|
||||
/* Nonzero means print names of header files (-H). */
|
||||
unsigned char print_include_names;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue