summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-11-26 18:06:59 -0700
committerKarl Williamson <khw@cpan.org>2022-12-07 09:13:37 -0700
commit9cac334660ea472bfc0d5e7cc02987514ce6573b (patch)
tree0d8ceacf6f63c745452ac47f4c4610e5c5d57f8f /proto.h
parent525e8d06ae8a84702e984bf5485c417a73e49b47 (diff)
downloadperl-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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/proto.h b/proto.h
index 9e67c6af83..b76ae95c5e 100644
--- a/proto.h
+++ b/proto.h
@@ -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__;