llvm-project/libcxx/include/support
Ben Craig b8aea04ef5 Split locale management out of newlib/xlocale.h. NFCI
This is one part of many of a locale refactor. See
http://reviews.llvm.org/D17146 for an idea of where this is going.

For the locale refactor, the locale management functions (newlocale,
freelocale, uselocale) are needed in a separate header from the various _l
functions. This is because some platforms implement the _l functions in terms
of a locale switcher RAII helper, and the locale switcher RAII helper needs
the locale management functions. This patch helps pave the way by getting all
the functions in the right files, so that later diffs aren't completely
horrible.

The "do-nothing" / "nop" locale functions are also useful on their own for
other lightweight platforms. Putting these nop implementations in
support/xlocale should enable code sharing.

Unfortunately, I have no access to a newlib system to build and test with, so
this change has been made blind.

Reviewed: http://reviews.llvm.org/D17382
llvm-svn: 261231
2016-02-18 17:40:16 +00:00
..
android
ibm Split locale management out of ibm/xlocale.h. NFCI 2016-02-18 17:37:33 +00:00
musl Add initial support for the MUSL C library. 2015-11-09 10:21:04 +00:00
newlib Split locale management out of newlib/xlocale.h. NFCI 2016-02-18 17:40:16 +00:00
solaris Get libc++ building on Sun Solaris. Patch from C Bergstrom. 2015-01-23 22:22:36 +00:00
win32 cmath: account for MSVCRT 12.0 changes 2015-02-28 20:18:39 +00:00
xlocale Split locale management out of newlib/xlocale.h. NFCI 2016-02-18 17:40:16 +00:00