This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Simplify handling of varying loop increments
authorKarl Williamson <khw@cpan.org>
Mon, 5 Feb 2018 01:48:26 +0000 (18:48 -0700)
committerKarl Williamson <khw@cpan.org>
Mon, 5 Feb 2018 03:29:23 +0000 (20:29 -0700)
commit03a2aaa3c921884eebd5bc46c16b9ed523d8d7fd
treec2b025adf90d568278219f368881e4da18033f3b
parent1e2cfe157cae98578de3c274bc64b8ea032b91e0
regcomp.c: Simplify handling of varying loop increments

Prior to this commit, this loop added 1 to a variable each iteration as
part of the for(;;).  This created some issues for the few cases where
that increment should be something else.

Now, the addition is removed from the for(;;), and defaults to 1, so
that the code inside doesn't have to account for an automatic 1 in the
for().
regcomp.c