summaryrefslogtreecommitdiff
path: root/perlapi.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-05-01 16:42:29 -0600
committerKarl Williamson <khw@cpan.org>2018-06-25 07:33:30 -0600
commita74bb78e4469c9f5ea806b57b155df6265d07975 (patch)
tree1b292629c07a3fb91e03bba56cb1649c58886422 /perlapi.h
parent03774c76efee24550f9d9bd279df87fc9038add1 (diff)
downloadperl-a74bb78e4469c9f5ea806b57b155df6265d07975.tar.gz
regcomp.c: Simplify
Under /a pattern matching, the matches of the [:posix:] classes are restricted to the ASCII range. Previously, in a time/space trade-off that favored space, we created the list of matching characters at pattern compilation time by ANDing the full-range Posix class with the set of ASCII characters. But now, the tables for just the ASCII-range classes are generated anyway, so there's no need to do that compilation-time intersection. This slightly simplifies the code.
Diffstat (limited to 'perlapi.h')
-rw-r--r--perlapi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/perlapi.h b/perlapi.h
index e41d61f0fb..5b004ae69e 100644
--- a/perlapi.h
+++ b/perlapi.h
@@ -115,6 +115,8 @@ END_EXTERN_C
#define PL_Latin1 (*Perl_GLatin1_ptr(NULL))
#undef PL_NonL1NonFinalFold
#define PL_NonL1NonFinalFold (*Perl_GNonL1NonFinalFold_ptr(NULL))
+#undef PL_Posix_ptrs
+#define PL_Posix_ptrs (*Perl_GPosix_ptrs_ptr(NULL))
#undef PL_SB_invlist
#define PL_SB_invlist (*Perl_GSB_invlist_ptr(NULL))
#undef PL_SCX_invlist