llvm-project/libcxx
Ben Craig 57b8b1f75f Reorganize locale extension fallbacks. NFCI
The various _l locale extension functions originate from very
different places.  Some come from POSIX, some are BSD extensions,
and some are shared BSD and GLIBC extensions. This patch tries to
group the local extension reimplementations by source. This should
make it easier to make libcxx work with POSIX compliant C libraries
that lack these extensions.

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

I have no access to a newlib system or an android system to build
and test with. I _do_ have access to a system without any of the _l
locale extensions though, and I was able to ensure that the new
__posix_l_fallback.h and __strtonum_fallback.h didn't have any massive
problems.

http://reviews.llvm.org/D17416

llvm-svn: 270213
2016-05-20 12:58:41 +00:00
..
cmake [libcxx] Prefer C++14 over C++11 when building libc++experimental. 2016-05-10 16:17:43 +00:00
docs Fix errors in documentation 2016-05-06 04:49:30 +00:00
include Reorganize locale extension fallbacks. NFCI 2016-05-20 12:58:41 +00:00
lib [libcxx] Prefer C++14 over C++11 when building libc++experimental. 2016-05-10 16:17:43 +00:00
src Fix memory_resource build for _LIBCPP_HAS_NO_THREADS 2016-05-07 05:37:31 +00:00
test Test hijacking ADL for operator& in the stream iterator constructors. 2016-05-17 21:01:20 +00:00
utils Add more missing license headers 2016-01-19 21:58:49 +00:00
www Mark LWG2583 as complete. I did this a while ago, and forgot to update the table. 2016-05-18 19:31:01 +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 Disable LIBCXX_ENABLE_ABI_LINKER_SCRIPT for static library builds. 2016-05-14 23:58:11 +00:00
CREDITS.TXT Add self to CREDITS.txt 2015-02-26 00:48:22 +00:00
LICENSE.TXT Update copyright year to 2016. 2016-03-30 22:39:53 +00:00
TODO.TXT Test commit to see if libcxx.llvm.org/docs builds 2015-09-04 22:57:00 +00:00