summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-03-27 11:55:56 -0600
committerKarl Williamson <khw@cpan.org>2018-03-31 15:36:45 -0600
commitc12658c9d0519a31658b990ce533a92a2269ff9a (patch)
tree9e417a4fcae30ec5fb5d43505fa7800308f1839d /perl.c
parent5062866add9348450ae921ebf4646c32db029da8 (diff)
downloadperl-c12658c9d0519a31658b990ce533a92a2269ff9a.tar.gz
Move init of 2 inversion lists to perl.c
These read-only globals can be initialized in perl.c, which allows us to remove runtime checks that they are initialized. This commit also takes advantage of the fact that they are now always initialized to use them as inversion lists, avoid swash creation.
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index d5f274386e..e364f22dc0 100644
--- a/perl.c
+++ b/perl.c
@@ -324,6 +324,8 @@ perl_construct(pTHXx)
PL_utf8_totitle = _new_invlist_C_array(Titlecase_Mapping_invlist);
PL_utf8_tofold = _new_invlist_C_array(Case_Folding_invlist);
PL_utf8_tosimplefold = _new_invlist_C_array(Simple_Case_Folding_invlist);
+ PL_utf8_perl_idstart = _new_invlist_C_array(_Perl_IDStart_invlist);
+ PL_utf8_perl_idcont = _new_invlist_C_array(_Perl_IDCont_invlist);
PL_AboveLatin1 = _new_invlist_C_array(AboveLatin1_invlist);
PL_Latin1 = _new_invlist_C_array(Latin1_invlist);
PL_UpperLatin1 = _new_invlist_C_array(UpperLatin1_invlist);