This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Use existing function to do task
authorKarl Williamson <khw@cpan.org>
Thu, 25 Jan 2018 20:20:24 +0000 (13:20 -0700)
committerKarl Williamson <khw@cpan.org>
Thu, 25 Jan 2018 20:53:10 +0000 (13:53 -0700)
commite5393ecf6e9201af0e65d171162cb1d44e4c5bb3
tree70214c9814748687165e51fcb53f88448f94ecc7
parenta1bb8e70b2a0f6d14bba079cc28aa6b47ba1200f
regcomp.c: Use existing function to do task

The function does it better than this code, which looked too deeply into
the internals, and got it wrong sometimes, because it didn't look at the
state of the inversion.  The consequences are not a bug, but potentially
forgoing an optimization, or needlessly looking for an optimization that
will turn out to not be there.
regcomp.c