This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Add some potential code that's #ifdef'd out
authorKarl Williamson <khw@cpan.org>
Thu, 23 Aug 2018 20:05:29 +0000 (14:05 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 15 Feb 2019 05:12:44 +0000 (22:12 -0700)
commitde5659380e7c1c711fbe4cef1ee09c7460bd5f55
treea70188de232d341cdeb1275a8374399155e7538b
parent73b95840bb1b55d761ec2dd075d2a8c37fa94bf4
regcomp.c: Add some potential code that's #ifdef'd out

This is in case we ever need it.  This checks for portability in the
code points specified in user-defined properties.  Previously there was
a check, but I couldn't get a warning to trigger unless there was also
overflow.  So that means the pattern compile failed due to the overflow,
and the portability warning was superfluous.  But, one can have
non-portable code points without overflow; just the old method didn't
properly detect them.  If we do ever need to detect and report on them,
the code is mostly written and in this commit.
regcomp.c