summaryrefslogtreecommitdiff
path: root/embed.fnc
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 /embed.fnc
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 'embed.fnc')
-rw-r--r--embed.fnc12
1 files changed, 6 insertions, 6 deletions
diff --git a/embed.fnc b/embed.fnc
index 3b4cb9b6d7..3fd3e68a6f 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -3330,17 +3330,18 @@ SG |bool |sv_derived_from_svpvn |NULLOK SV *sv \
#endif
#if defined(PERL_IN_LOCALE_C)
+S |utf8ness_t|get_locale_string_utf8ness_i \
+ |NULLOK const char * string \
+ |const locale_utf8ness_t known_utf8 \
+ |NULLOK const char * locale \
+ |const unsigned cat_index
+S |bool |is_locale_utf8 |NN const char * locale
# ifdef USE_LOCALE
iR |const char *|mortalized_pv_copy|NULLOK const char * const pv
ST |const char *|save_to_buffer|NULLOK const char * string \
|NULLOK const char **buf \
|NULLOK Size_t *buf_size
ST |unsigned int|get_category_index|const int category|NULLOK const char * locale
-S |utf8ness_t|get_locale_string_utf8ness_i \
- |NULLOK const char * string \
- |const locale_utf8ness_t known_utf8 \
- |NULLOK const char * locale \
- |const unsigned cat_index
# ifdef USE_LOCALE_CTYPE
S |void |new_ctype |NN const char* newctype
ST |bool |is_codeset_name_UTF8|NN const char * name
@@ -3365,7 +3366,6 @@ So |const char *|toggle_locale_i|const unsigned switch_cat_index \
So |void |restore_toggled_locale_i|const unsigned cat_index \
|NULLOK const char * original_locale \
|const line_t caller_line
-S |bool |is_locale_utf8 |NN const char * locale
# if (defined(HAS_LOCALECONV) || defined(HAS_LOCALECONV_L)) \
&& (defined(USE_LOCALE_MONETARY) || defined(USE_LOCALE_NUMERIC))
S |HV * |my_localeconv|const int item