This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Refactor some if-elses
authorKarl Williamson <khw@cpan.org>
Sun, 15 Jan 2017 00:55:24 +0000 (17:55 -0700)
committerKarl Williamson <khw@cpan.org>
Tue, 20 Feb 2018 08:37:24 +0000 (01:37 -0700)
commitaa664f48918ef63c2436b3109fee3a49b3ffc592
tree3a56508406f2b1f7d1dfce18393ad8f1a30332c5
parentd164443fe7708a332f3408f2a842d986b3148cbb
regcomp.c: Refactor some if-elses

if (foo) {
    ...
    return
} else {
    stuff
}

is equivalent to

if (foo) {
    ...
    return
}

stuff

This commit changes the former to the latter, which also means moving
some declarations earlier, and some intialization later, and removing
some no longer valid code.  This will be useful in the next commit.
regcomp.c