libroot/locale: Consolidate some headers.

No behavioral change intended.
This commit is contained in:
Augustin Cavalier
2026-01-15 18:48:09 -05:00
parent fa4502cdb5
commit 2d20dfef26
9 changed files with 21 additions and 86 deletions
@@ -7,15 +7,13 @@
#include <ctype.h>
#include <limits.h>
#include <PosixCtype.h>
#include <PosixLocaleConv.h>
#ifndef _KERNEL_MODE
#include <langinfo.h>
#include <PosixLanginfo.h>
#include <PosixLCTimeInfo.h>
#include <timelocal.h>
#endif
#include <LocaleData.h>
/*
* The values below initialize the structs for the "C"/"POSIX" locale
@@ -11,11 +11,7 @@
#include <string.h>
#include <time.h>
#include <PosixCtype.h>
#include <PosixLanginfo.h>
#include <PosixLCTimeInfo.h>
#include <PosixLocaleConv.h>
#include <ThreadLocale.h>
#include <LocaleData.h>
extern const unsigned short* __ctype_b;
+2 -3
View File
@@ -8,7 +8,7 @@
#include <locale.h>
#include <LocaleBackend.h>
#include <PosixCtype.h>
#include <LocaleData.h>
namespace BPrivate {
@@ -21,9 +21,8 @@ GetClassInfoTable(locale_t l)
{
LocaleBackendData* locale = (LocaleBackendData*)l;
if (locale->databridge == NULL) {
if (locale->databridge == NULL)
return &gPosixClassInfo[128];
}
return *locale->databridge->ctypeDataBridge.addrOfClassInfoTable;
}
@@ -8,7 +8,7 @@
*/
#include <PosixLocaleConv.h>
#include <LocaleData.h>
#ifndef _KERNEL_MODE
#include <locale.h>
@@ -45,4 +45,4 @@ localeconv_l(locale_t l)
return &BPrivate::Libroot::gPosixLocaleConv;
}
#endif
#endif
@@ -7,8 +7,7 @@
#include <langinfo.h>
#include "LocaleBackend.h"
#include <PosixLanginfo.h>
#include "LocaleData.h"
using BPrivate::Libroot::gPosixLanginfo;