llvm-project/libcxx
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
..
cmake Issue a warning instead of fatal errors when checks for libatomic fail. 2016-02-16 14:15:27 +00:00
docs [docs] Remove references to autoconf build. 2016-01-30 01:11:42 +00:00
include Split locale management out of newlib/xlocale.h. NFCI 2016-02-18 17:40:16 +00:00
lib Re-commit "Introduce a cmake module to figure out whether we need to link with libatomic." 2016-02-11 12:43:04 +00:00
src [libcxx] Whitelist inclusion of sysctl.h instead of blacklisting 2016-01-29 13:53:23 +00:00
test Commit tests missing from r261180. 2016-02-18 00:21:09 +00:00
utils Add more missing license headers 2016-01-19 21:58:49 +00:00
www Add some status 2016-02-16 16:05:15 +00:00
.arcconfig Update Arcanist config to point to reviews.llvm.org 2014-06-10 18:29:36 +00:00
.gitignore [libc++] Refactor test components into modules. 2015-01-09 18:03:29 +00:00
CMakeLists.txt build: silence warnings in in-tree build 2016-02-08 03:50:18 +00:00
CREDITS.TXT Add self to CREDITS.txt 2015-02-26 00:48:22 +00:00
LICENSE.TXT Update copyright year to 2015. 2015-03-12 20:13:11 +00:00
TODO.TXT Test commit to see if libcxx.llvm.org/docs builds 2015-09-04 22:57:00 +00:00