summaryrefslogtreecommitdiff
path: root/embedvar.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-10-03 08:33:55 -0600
committerKarl Williamson <khw@cpan.org>2022-10-18 06:22:16 -0600
commit6a4065f28f30d59e3a6cea6504be34bdb5e5eb8b (patch)
tree6f7ebbc29f3e2463dd19d5800b6f7e0b557fdef7 /embedvar.h
parent7de8159af380f738facd9db4aa5455f02ba5af04 (diff)
downloadperl-6a4065f28f30d59e3a6cea6504be34bdb5e5eb8b.tar.gz
locale: Create special variable to hold current LC_ALL
Some configurations require us to store the current locale for each category. Prior to this commit, this was done in the array PL_curlocales, with the entry for LC_ALL being in the highest element. Future commits will need just the value for LC_ALL in some other configurations, without needing the rest of the array. This commit splits off the LC_ALL element into its own per-interpreter variable to accommodate those. It always had to have special handling anyway beyond the rest of the array elements,
Diffstat (limited to 'embedvar.h')
-rw-r--r--embedvar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/embedvar.h b/embedvar.h
index 1d6ae53e52..8c6584722f 100644
--- a/embedvar.h
+++ b/embedvar.h
@@ -86,6 +86,7 @@
#define PL_constpadix (vTHX->Iconstpadix)
#define PL_cop_seqmax (vTHX->Icop_seqmax)
#define PL_ctype_name (vTHX->Ictype_name)
+#define PL_cur_LC_ALL (vTHX->Icur_LC_ALL)
#define PL_curcop (vTHX->Icurcop)
#define PL_curcopdb (vTHX->Icurcopdb)
#define PL_curlocales (vTHX->Icurlocales)