lcbuf = localeconv_l(cur);
# else
- LOCALE_LOCK_V; /* Prevent interference with other threads using
- localeconv() */
+ LOCALECONV_LOCK; /* Prevent interference with other threads using
+ localeconv() */
# ifdef TS_W32_BROKEN_LOCALECONV
/* This is a workaround for a Windows bug prior to VS 15, in which
* localeconv only looks at the global locale. We toggle to the global
Safefree(save_global);
Safefree(save_thread);
# endif
- LOCALE_UNLOCK_V;
+ LOCALECONV_UNLOCK;
# endif
RESTORE_LC_NUMERIC();
#endif /* HAS_LOCALECONV */
/* We don't bother with localeconv_l() because any system that
* has it is likely to also have nl_langinfo() */
- LOCALE_LOCK_V; /* Prevent interference with other threads
- using localeconv() */
+ LOCALECONV_LOCK; /* Prevent interference with other threads
+ using localeconv() */
# ifdef TS_W32_BROKEN_LOCALECONV
|| ! lc->currency_symbol
|| strEQ("", lc->currency_symbol))
{
- LOCALE_UNLOCK_V;
+ LOCALECONV_UNLOCK;
return "";
}
# endif
- LOCALE_UNLOCK_V;
+ LOCALECONV_UNLOCK;
break;
# ifdef TS_W32_BROKEN_LOCALECONV
STORE_LC_NUMERIC_FORCE_TO_UNDERLYING();
}
- LOCALE_LOCK_V; /* Prevent interference with other threads
- using localeconv() */
+ LOCALECONV_LOCK; /* Prevent interference with other threads
+ using localeconv() */
# ifdef TS_W32_BROKEN_LOCALECONV
# endif
- LOCALE_UNLOCK_V;
+ LOCALECONV_UNLOCK;
if (toggle) {
RESTORE_LC_NUMERIC();
* a few places where there is a broken localeconv(), but otherwise things are
* thread safe, and hence don't need locking. Just below LOCALE_LOCK and
* LOCALE_UNLOCK are defined in terms of these for use everywhere else */
-# define LOCALE_LOCK_V \
+# define LOCALECONV_LOCK \
STMT_START { \
DEBUG_Lv(PerlIO_printf(Perl_debug_log, \
"%s: %d: locking locale\n", __FILE__, __LINE__)); \
MUTEX_LOCK(&PL_locale_mutex); \
} STMT_END
-# define LOCALE_UNLOCK_V \
+# define LOCALECONV_UNLOCK \
STMT_START { \
DEBUG_Lv(PerlIO_printf(Perl_debug_log, \
"%s: %d: unlocking locale\n", __FILE__, __LINE__)); \
# define LC_NUMERIC_LOCK(cond)
# define LC_NUMERIC_UNLOCK
# else
-# define LOCALE_LOCK LOCALE_LOCK_V
-# define LOCALE_UNLOCK LOCALE_UNLOCK_V
+# define LOCALE_LOCK LOCALECONV_LOCK
+# define LOCALE_UNLOCK LOCALECONV_UNLOCK
/* We also need to lock LC_NUMERIC for non-windows (hence Posix 2008)
* systems */
#else /* Below is no locale sync needed */
# define LOCALE_INIT
# define LOCALE_LOCK
-# define LOCALE_LOCK_V
+# define LOCALECONV_LOCK
# define LOCALE_UNLOCK
-# define LOCALE_UNLOCK_V
+# define LOCALECONV_UNLOCK
# define LC_NUMERIC_LOCK(cond)
# define LC_NUMERIC_UNLOCK
# define LOCALE_TERM