This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use multi-bit field for regex character set
authorKarl Williamson <public@khwilliamson.com>
Sun, 26 Dec 2010 17:31:16 +0000 (10:31 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sun, 16 Jan 2011 23:36:43 +0000 (16:36 -0700)
commita62b1201c068dc7b099bcb7182e188c4d2fbf34c
tree6c067a6e4adc8f2333b749fa3592c2812e711b95
parent5458d9a05ef8545ccbb8a58e670fbede60d10480
Use multi-bit field for regex character set

The /d, /l, and /u regex modifiers are mutually exclusive.  This patch
changes the field that stores the character set to use more than one bit
with an enum determining which one.  This data structure more
closely follows the semantics of their being mutually exclusive, and
conserves bits as well, and is better expandable.

A small API is added to set and query the bit field.

This patch is not .xs source backwards compatible.  A handful of cpan
programs are affected.
ext/re/re.pm
op.c
op_reg_common.h
pod/perldelta.pod
pp.c
regcomp.c
regexp.h
regnodes.h
universal.c