This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Make macro a lookup
authorKarl Williamson <khw@cpan.org>
Tue, 26 Aug 2014 21:34:25 +0000 (15:34 -0600)
committerKarl Williamson <khw@cpan.org>
Sun, 7 Sep 2014 03:12:05 +0000 (21:12 -0600)
commit8e35b0561082715dcfa5b85db6cfb4fd650e72f1
treefa89f495b9ee94ad55a0ad41ab723330973a169b
parent549b4e78e20d6b000653c2b3d043c46bf7ba0d57
regcomp.c: Make macro a lookup

The recently introduced macro isMNEMONIC_CNTRL has a look-up and several
tests in it, which occupy time and space.  Since it was only used for
debugging, that did not matter much, but future commits will use it in
more mainline code.  This commit changes it to be a single look-up,
using up one of the spare bits available for that purpose in
PL_charclass.  There are enough available bits that we aren't likely to
run out, really ever.  (We can always add a 2nd word of bits if
necessary.)
handy.h
l1_char_class_tab.h
regcomp.c
regen/mk_PL_charclass.pl