diff options
author | Karl Williamson <khw@cpan.org> | 2018-03-31 11:18:38 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-03-31 15:36:45 -0600 |
commit | f1bcae08d82e5348df8b5dc0c44313ea38deb12b (patch) | |
tree | f8c12cfd58ff90426563d05ef2688442b6e58cdf /embedvar.h | |
parent | 9c4165e33442f4b2fbc036d677b5a9196a5375ee (diff) | |
download | perl-f1bcae08d82e5348df8b5dc0c44313ea38deb12b.tar.gz |
Use charnames inversion lists
This commit makes the inversion lists for parsing character name global
instead of interpreter level, so can be initialized once per process,
and no copies are created upon new thread instantiation. More
importantly, this is another instance where utf8_heavy.pl no longer
needs to be loaded, and the definition files read from disk.
Diffstat (limited to 'embedvar.h')
-rw-r--r-- | embedvar.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/embedvar.h b/embedvar.h index e34496522e..890a8b44e1 100644 --- a/embedvar.h +++ b/embedvar.h @@ -336,8 +336,6 @@ #define PL_unitcheckav_save (vTHX->Iunitcheckav_save) #define PL_unlockhook (vTHX->Iunlockhook) #define PL_unsafe (vTHX->Iunsafe) -#define PL_utf8_charname_begin (vTHX->Iutf8_charname_begin) -#define PL_utf8_charname_continue (vTHX->Iutf8_charname_continue) #define PL_utf8_foldclosures (vTHX->Iutf8_foldclosures) #define PL_utf8_mark (vTHX->Iutf8_mark) #define PL_utf8_swash_ptrs (vTHX->Iutf8_swash_ptrs) @@ -463,6 +461,10 @@ #define PL_Gtimesbase (my_vars->Gtimesbase) #define PL_use_safe_putenv (my_vars->Guse_safe_putenv) #define PL_Guse_safe_putenv (my_vars->Guse_safe_putenv) +#define PL_utf8_charname_begin (my_vars->Gutf8_charname_begin) +#define PL_Gutf8_charname_begin (my_vars->Gutf8_charname_begin) +#define PL_utf8_charname_continue (my_vars->Gutf8_charname_continue) +#define PL_Gutf8_charname_continue (my_vars->Gutf8_charname_continue) #define PL_utf8_foldable (my_vars->Gutf8_foldable) #define PL_Gutf8_foldable (my_vars->Gutf8_foldable) #define PL_utf8_idcont (my_vars->Gutf8_idcont) |