Skip to content

Commit

Permalink
Add pTHX to locale_thread_init()
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Apr 20, 2021
1 parent 4d63790 commit 6cb8e34
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion embed.fnc
Expand Up @@ -1625,7 +1625,7 @@ Xp |void |set_numeric_standard
Xp |bool |_is_in_locale_category|const bool compiling|const int category
ApdT |void |switch_to_global_locale
ApdT |bool |sync_locale
ApxT |void |thread_locale_init
Apx |void |thread_locale_init
ApxT |void |thread_locale_term
ApdO |void |require_pv |NN const char* pv
AbpdD |void |pack_cat |NN SV *cat|NN const char *pat|NN const char *patend \
Expand Down
2 changes: 1 addition & 1 deletion embed.h
Expand Up @@ -720,7 +720,7 @@
#define sync_locale Perl_sync_locale
#define taint_env() Perl_taint_env(aTHX)
#define taint_proper(a,b) Perl_taint_proper(aTHX_ a,b)
#define thread_locale_init Perl_thread_locale_init
#define thread_locale_init() Perl_thread_locale_init(aTHX)
#define thread_locale_term Perl_thread_locale_term
#define to_uni_lower(a,b,c) Perl_to_uni_lower(aTHX_ a,b,c)
#define to_uni_title(a,b,c) Perl_to_uni_title(aTHX_ a,b,c)
Expand Down
4 changes: 1 addition & 3 deletions locale.c
Expand Up @@ -6645,7 +6645,7 @@ S_setlocale_debug_string_i(const unsigned cat_index,
#endif

void
Perl_thread_locale_init()
Perl_thread_locale_init(pTHX)
{
/* Called from a thread on startup*/

Expand All @@ -6656,8 +6656,6 @@ Perl_thread_locale_init()
* exacerbating that */ \
&& defined(USE_THREAD_SAFE_LOCALE)

dTHX;

DEBUG_L(PORCELAIN_SETLOCALE_LOCK;
PerlIO_printf(Perl_debug_log,
"new thread, initial locale is %s\n",
Expand Down
2 changes: 1 addition & 1 deletion proto.h
Expand Up @@ -3914,7 +3914,7 @@ PERL_CALLCONV void Perl_taint_env(pTHX);
PERL_CALLCONV void Perl_taint_proper(pTHX_ const char* f, const char *const s);
#define PERL_ARGS_ASSERT_TAINT_PROPER \
assert(s)
PERL_CALLCONV void Perl_thread_locale_init(void);
PERL_CALLCONV void Perl_thread_locale_init(pTHX);
#define PERL_ARGS_ASSERT_THREAD_LOCALE_INIT
PERL_CALLCONV void Perl_thread_locale_term(void);
#define PERL_ARGS_ASSERT_THREAD_LOCALE_TERM
Expand Down

0 comments on commit 6cb8e34

Please sign in to comment.