summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-02-24 04:24:48 -0700
committerKarl Williamson <khw@cpan.org>2022-06-16 06:18:39 -0600
commitd188fe6d7ad41562666403fe77e959af6513771d (patch)
tree44fb8f13028206e815016c20929176cf1eefdabd /embed.h
parent7e1cacefbdbeaeb1d6ea1a9f1b8ffc2a0e080062 (diff)
downloadperl-d188fe6d7ad41562666403fe77e959af6513771d.tar.gz
locale.c: Use get_category_index()
This creates the first uses of the function added in the previous commit. It changes the name of a function that now takes an index to have the suffix _i to indicate its calling parameter is a category index rather than a category. This will become a common paradigm in this file in later commits. Two macros are also created to call that function; they have suffixes _c (to indicate the parameter is a category known at compile time, and _r (to indicate it needs to be computed at runtime). This is in keeping with the already existing paradigm in this file.
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.h b/embed.h
index d896650646..fe8616b843 100644
--- a/embed.h
+++ b/embed.h
@@ -1532,7 +1532,7 @@
# if defined(USE_LOCALE)
#define print_bytes_for_locale(a,b,c) S_print_bytes_for_locale(aTHX_ a,b,c)
#define print_collxfrm_input_and_return(a,b,c,d) S_print_collxfrm_input_and_return(aTHX_ a,b,c,d)
-#define setlocale_debug_string S_setlocale_debug_string
+#define setlocale_debug_string_i S_setlocale_debug_string_i
# endif
# endif
# if defined(PERL_IN_PAD_C)