This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Move test earlier in regpiece()
authorKarl Williamson <khw@cpan.org>
Tue, 21 Apr 2020 12:26:58 +0000 (06:26 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 12 Oct 2020 15:45:46 +0000 (09:45 -0600)
commit1aab533b71752bd887772a5c5c5c5480e2c23387
treef83e3e92298a1f44dfaee3f1b14e29ee98381ddc
parentb589ccd0c210cfaf90daca490239d69379be7e53
regcomp.c: Move test earlier in regpiece()

Prior to this commit, the code checked if this was a particular
quantifier; if so handled that, then checked if it were some other
quantifier, returning if not.

This commit changes to check first if it is any quantifier, using the
macro that checks for all of them, returning if not.

Thus after the new code we know it is a quantifier and this allows later
commits to simplify
regcomp.c