This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: regpiece: Move chunk of code for clarity
authorKarl Williamson <khw@cpan.org>
Mon, 5 Oct 2020 03:54:06 +0000 (21:54 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 12 Oct 2020 15:45:47 +0000 (09:45 -0600)
commit01f72ca30b1f3af6817d4c6c6157af7bd14e46a2
tree61a4a0752f9d25600e342391f5d70a624ad2d804
parentfb138e5e855d79e3ee5c76dba85bc993f729c00f
regcomp.c: regpiece: Move chunk of code for clarity

This changes an error branch to be goto'd out of the mainline code.  The
large chunk being in the middle obscured the comonality of the slightly
different non-error cases.

The branch is moved to the bottom of the routine, and croaks, so there
is no return.

This is a modification to a suggestion by Hugo van der Sanden.
regcomp.c