diff options
author | Karl Williamson <khw@cpan.org> | 2022-11-26 18:06:59 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-12-07 09:13:37 -0700 |
commit | 9cac334660ea472bfc0d5e7cc02987514ce6573b (patch) | |
tree | 0d8ceacf6f63c745452ac47f4c4610e5c5d57f8f /proto.h | |
parent | 525e8d06ae8a84702e984bf5485c417a73e49b47 (diff) | |
download | perl-9cac334660ea472bfc0d5e7cc02987514ce6573b.tar.gz |
locale.c: Move 2 functions elsewhere in the code
This is in preparation for them to be called on platforms where locale
handling is not enabled.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5736,14 +5736,14 @@ PERL_CALLCONV SV* Perl_hfree_next_entry(pTHX_ HV *hv, STRLEN *indexp) #endif #if defined(PERL_IN_LOCALE_C) -# if defined(USE_LOCALE) -STATIC unsigned int S_get_category_index(const int category, const char * locale); -#define PERL_ARGS_ASSERT_GET_CATEGORY_INDEX STATIC utf8ness_t S_get_locale_string_utf8ness_i(pTHX_ const char * string, const locale_utf8ness_t known_utf8, const char * locale, const unsigned cat_index); #define PERL_ARGS_ASSERT_GET_LOCALE_STRING_UTF8NESS_I STATIC bool S_is_locale_utf8(pTHX_ const char * locale); #define PERL_ARGS_ASSERT_IS_LOCALE_UTF8 \ assert(locale) +# if defined(USE_LOCALE) +STATIC unsigned int S_get_category_index(const int category, const char * locale); +#define PERL_ARGS_ASSERT_GET_CATEGORY_INDEX #ifndef PERL_NO_INLINE_FUNCTIONS PERL_STATIC_INLINE const char * S_mortalized_pv_copy(pTHX_ const char * const pv) __attribute__warn_unused_result__; |