This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Don't restart parse for /d to /u if no need to
authorKarl Williamson <khw@cpan.org>
Wed, 7 Nov 2018 01:26:39 +0000 (18:26 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 16 Nov 2018 17:48:19 +0000 (10:48 -0700)
commitbd0b62a660635ad32a22aa96c5f1f0c45dc3127d
tree5fc70d3df64f4fe1c220b59489db2395dfd4baf4
parentd1be211cd36639caeb3c7482759d9bed530ecaad
regcomp.c: Don't restart parse for /d to /u if no need to

This commit keeps track of if there are any operations encountered which
differ under /d from /u.  If we switch to /u and haven't so far found
anything which differs, there's no need to reparse
regcomp.c