summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-10-01 13:43:54 -0600
committerKarl Williamson <khw@cpan.org>2022-10-18 06:22:16 -0600
commit49825ce8d49ec49e0c08ecb341ea5a7b7383225b (patch)
tree1b6dd4d9933cd9855ec95f4055f386cf7ffb6fda /embed.fnc
parent6a4065f28f30d59e3a6cea6504be34bdb5e5eb8b (diff)
downloadperl-49825ce8d49ec49e0c08ecb341ea5a7b7383225b.tar.gz
locale.c: Compile display fcn under more circumstances
This is in preparation for it to be used in more instances in future commits. It uses a symbol that won't be defined until those commits.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc4
1 files changed, 3 insertions, 1 deletions
diff --git a/embed.fnc b/embed.fnc
index 7045868c7d..7623b3c455 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -3450,13 +3450,15 @@ S |const char*|my_langinfo_i|const int item \
|NULLOK utf8ness_t * utf8ness
# endif
# ifdef DEBUGGING
-S |const char *|get_LC_ALL_display
SR |char * |my_setlocale_debug_string_i \
|const unsigned cat_index \
|NULLOK const char* locale \
|NULLOK const char* retval \
|const line_t line
# endif
+# if defined(DEBUGGING) || defined(USE_PERL_SWITCH_LOCALE_CONTEXT)
+S |const char *|get_LC_ALL_display
+# endif
# endif
S |const char *|get_displayable_string|NN const char * const s \
|NN const char * const e \