mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:33:12 +00:00
[UCRT] Import Microsoft.Windows.SDK.CRTSource version 10.0.22621.3
Imported from https://www.nuget.org/packages/Microsoft.Windows.SDK.CRTSource/10.0.22621.3 License: MIT
This commit is contained in:
parent
f1b60c66f0
commit
04e0dc4a7a
568 changed files with 115483 additions and 0 deletions
55
sdk/lib/ucrt/locale/locale_update.cpp
Normal file
55
sdk/lib/ucrt/locale/locale_update.cpp
Normal file
|
@ -0,0 +1,55 @@
|
|||
//
|
||||
// locale_update.cpp
|
||||
//
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
// Encapsulated implementation details of _LocaleUpdate that cannot be defined
|
||||
// in the header because they refer to data not exported from the AppCRT DLL.
|
||||
//
|
||||
#include <corecrt_internal.h>
|
||||
|
||||
extern "C" void __acrt_update_locale_info(
|
||||
__acrt_ptd* const ptd,
|
||||
__crt_locale_data** const locale_info
|
||||
)
|
||||
{
|
||||
if (*locale_info != __acrt_current_locale_data.value() && __acrt_should_sync_with_global_locale(ptd))
|
||||
{
|
||||
*locale_info = __acrt_update_thread_locale_data();
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void __acrt_update_multibyte_info(
|
||||
__acrt_ptd* const ptd,
|
||||
__crt_multibyte_data** const multibyte_info
|
||||
)
|
||||
{
|
||||
if (*multibyte_info != __acrt_current_multibyte_data.value() && __acrt_should_sync_with_global_locale(ptd))
|
||||
{
|
||||
*multibyte_info = __acrt_update_thread_multibyte_data();
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void __acrt_update_locale_info_explicit(
|
||||
__acrt_ptd* const ptd,
|
||||
__crt_locale_data** const locale_info,
|
||||
size_t const current_global_state_index
|
||||
)
|
||||
{
|
||||
if (*locale_info != __acrt_current_locale_data.value_explicit(current_global_state_index) && __acrt_should_sync_with_global_locale(ptd))
|
||||
{
|
||||
*locale_info = __acrt_update_thread_locale_data();
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void __acrt_update_multibyte_info_explicit(
|
||||
__acrt_ptd* const ptd,
|
||||
__crt_multibyte_data** const multibyte_info,
|
||||
size_t const current_global_state_index
|
||||
)
|
||||
{
|
||||
if (*multibyte_info != __acrt_current_multibyte_data.value_explicit(current_global_state_index) && __acrt_should_sync_with_global_locale(ptd))
|
||||
{
|
||||
*multibyte_info = __acrt_update_thread_multibyte_data();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue