regcomp.c: Refactor some /[foo]/ code
authorKarl Williamson <khw@cpan.org>
Wed, 21 Nov 2018 04:49:16 +0000 (21:49 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 26 Dec 2018 19:50:37 +0000 (12:50 -0700)
commiteb055bf0f4aa39363f10d941305f5dc9c3cdbc53
tree5e5fcc3acd3e1afce0270f851372026c0532bdea
parent95fb0a6ee328d82cedece3632319bbf5e2578e25
regcomp.c: Refactor some /[foo]/ code

This refactors the code that sees about optimizing bracketed character
classes into something else, so that the creating of the other regnode
is done closer to its determination, and only the really common code
actually is done in the common place, moved to the end of the function.
This removes the need for some 'elses' and 'ifs'
regcomp.c