This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Refactor as a result of [perl #123539]
authorKarl Williamson <khw@cpan.org>
Tue, 6 Jan 2015 20:08:06 +0000 (13:08 -0700)
committerKarl Williamson <khw@cpan.org>
Tue, 6 Jan 2015 22:05:26 +0000 (15:05 -0700)
commit25016d423e8dd5392c103ec57b66dd302362b2c1
treef58c3e5ab8bc6ef66c86229aee93c362a1a116c1
parent405dffcb17b9cc9d0e5d7b41835b998ca7f1d873
regcomp.c: Refactor as a result of [perl #123539]

The previous commit was a minimal patch for this bug, suitable for a
maintenance release.  This patch refactors that fix to eliminate special
cases (hence branches) and makes things more logical and clearer.

The original code shoe-horned two cases together that, it turns out,
should have been handled separately, and this patch does that.

The earlier code was somewhat stilted to conform with the reguni() API.
Now that reguni is no longer called, this gets cleaned up.
regcomp.c