diff options
author | Karl Williamson <khw@cpan.org> | 2021-04-11 09:07:07 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-09-01 09:02:04 -0600 |
commit | 37b8263e6d237e6e7d0e92a6c311d9b6121ea57c (patch) | |
tree | 8172810d2202b388da9a7547831d94bdc014d973 /embedvar.h | |
parent | 430ae200b5739fbee33c70114a733afecbced76c (diff) | |
download | perl-37b8263e6d237e6e7d0e92a6c311d9b6121ea57c.tar.gz |
locale.c: Save underlying radix character
When changing locales the new decimal point needs to be calculated.
This commit creates a new per-interpreter variable to save that
calculation, so it only has to be done when a new locale is set; prior
to this commit it was recalculated each time it was needed.
The calculation is still performed twice when the new locale is switched
into. But the redundant calculation will be removed in a couple of
commits hence.
Diffstat (limited to 'embedvar.h')
-rw-r--r-- | embedvar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embedvar.h b/embedvar.h index 7567eec199..8517b1a9dc 100644 --- a/embedvar.h +++ b/embedvar.h @@ -330,6 +330,7 @@ #define PL_top_env (vTHX->Itop_env) #define PL_toptarget (vTHX->Itoptarget) #define PL_underlying_numeric_obj (vTHX->Iunderlying_numeric_obj) +#define PL_underlying_radix_sv (vTHX->Iunderlying_radix_sv) #define PL_unicode (vTHX->Iunicode) #define PL_unitcheckav (vTHX->Iunitcheckav) #define PL_unitcheckav_save (vTHX->Iunitcheckav_save) |