diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-02-10 10:35:48 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-02-11 13:31:33 -0700 |
commit | 24caacbccae7b938deecdcc3f13dd66c9c6a684e (patch) | |
tree | f08e7f10554bc874251d94d9d5b2684b40c6d706 /regcomp.c | |
parent | bb0d02ab7b92c63044b4ee5631217dc06cb2e2ca (diff) | |
download | perl-24caacbccae7b938deecdcc3f13dd66c9c6a684e.tar.gz |
regcomp.c: Remove duplicate inversion list
\h and \p{XPosixBlank} contain the same code points, so there is no need
to have both of them.
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -4841,8 +4841,6 @@ Perl_re_compile(pTHX_ SV * const pattern, U32 orig_pm_flags) PL_L1PosixAlnum = _new_invlist_C_array(L1PosixAlnum_invlist); PL_PosixAlnum = _new_invlist_C_array(PosixAlnum_invlist); - PL_HorizSpace = _new_invlist_C_array(HorizSpace_invlist); - PL_L1PosixLower = _new_invlist_C_array(L1PosixLower_invlist); PL_PosixLower = _new_invlist_C_array(PosixLower_invlist); @@ -10863,12 +10861,13 @@ parseit: /* For these, we use the nonbitmap, as /d doesn't make a * difference in what these match. There would be problems * if these characters had folds other than themselves, as - * nonbitmap is subject to folding */ - _invlist_union(nonbitmap, PL_HorizSpace, &nonbitmap); + * nonbitmap is subject to folding. It turns out that \h + * is just a synonym for XPosixBlank */ + _invlist_union(nonbitmap, PL_XPosixBlank, &nonbitmap); break; case ANYOF_NHORIZWS: _invlist_union_complement_2nd(nonbitmap, - PL_HorizSpace, &nonbitmap); + PL_XPosixBlank, &nonbitmap); break; case ANYOF_LOWER: case ANYOF_NLOWER: |