This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Collapse some code
authorKarl Williamson <khw@cpan.org>
Sun, 31 Mar 2019 20:13:58 +0000 (14:13 -0600)
committerKarl Williamson <khw@cpan.org>
Sun, 15 Sep 2019 04:26:49 +0000 (22:26 -0600)
commitcfba2ecca3ba2c255c4533aa7cc149abdeea3ec0
tree9cbb1edf9e2a6bb6d2bedd57bfa3cbe529985cf8
parent4758c20d21341aad8eb03b0831dc6e1a38046a0e
regcomp.c: Collapse some code

These case statements are all repeated in the code for bracketed
character classes, and mean the same thing.  That code knows a bunch of
things for optimizing.  No need to duplicate that.  Instead, pretend
these are being called within brackets, and call the code to handle
that case, which will generate the proper ops.  This now follows the
example of Unicode properties which have long been processed by
pretending they are surrounded by [...]
regcomp.c