-
- Downloads
Feature: Macros for identifying the wide and narrow execution string literal encoding
gcc/c-family * c-cppbuiltin.c (c_cpp_builtins): Add predefined {__GNUC_EXECUTION_CHARSET_NAME} and _WIDE_EXECUTION_CHARSET_NAME} macros. gcc/ * doc/cpp.texi: Document new macros. gcc/testsuite/ * c-c++-common/cpp/wide-narrow-predef-macros.c: New test. libcpp/ * charset.c (init_iconv_desc): Initialize "to" and "from" fields. * directives.c (cpp_get_narrow_charset_name): New function. (cpp_get_wide_charset_name): Likewise. * include/cpplib.h (cpp_get_narrow_charset_name): Prototype. (cpp_get_wide_charset_name): Likewise. * internal.h (cset_converter): Add "to" and "from" fields.
Showing
- gcc/c-family/c-cppbuiltin.c 7 additions, 0 deletionsgcc/c-family/c-cppbuiltin.c
- gcc/doc/cpp.texi 9 additions, 0 deletionsgcc/doc/cpp.texi
- gcc/testsuite/c-c++-common/cpp/wide-narrow-predef-macros.c 13 additions, 0 deletionsgcc/testsuite/c-c++-common/cpp/wide-narrow-predef-macros.c
- libcpp/charset.c 3 additions, 0 deletionslibcpp/charset.c
- libcpp/directives.c 14 additions, 0 deletionslibcpp/directives.c
- libcpp/include/cpplib.h 5 additions, 0 deletionslibcpp/include/cpplib.h
- libcpp/internal.h 2 additions, 0 deletionslibcpp/internal.h
Loading
Please register or sign in to comment