This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Move fcn call out of loop
authorKarl Williamson <khw@cpan.org>
Tue, 16 Oct 2018 18:16:10 +0000 (12:16 -0600)
committerKarl Williamson <khw@cpan.org>
Sat, 20 Oct 2018 06:09:56 +0000 (00:09 -0600)
commit690dd6eba70d6a431cbb661b449c25d4d4e0a029
tree1789eb66316fbae5137893d36c995aaa7146f6d8
parentded2bbcb0033e7d291e5297d88e54ead574b1f0e
regcomp.c: Move fcn call out of loop

The loop in this case is by a goto label, and the function determines if
there are runtime code blocks in the pattern.  That doesn't change if we
have to reparse, so the return from the function doesn't change, so we
only have to call it once.
regcomp.c