diff options
author | Karl Williamson <khw@cpan.org> | 2015-08-21 22:21:57 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2015-08-24 12:11:33 -0600 |
commit | f240c685c914970dc8ffec926f02d6048831bc09 (patch) | |
tree | d23256f6949cf4db7dc56283b2a20c88852058d9 /README.symbian | |
parent | ac44c12e0b8cc8431bb165c203dcf56d2659302c (diff) | |
download | perl-f240c685c914970dc8ffec926f02d6048831bc09.tar.gz |
regcomp.h: Fold 2 ANYOF flags into a single one
The ANYOF_FLAGS bits are all used up, but a future commit wants one.
This commit frees up a bit by sharing two of the existing
comparatively-rarely-used ones. One bit is used only under /d matching
rules, while the other is used only when not under /d. Only the latter
bit is used in synthetic start classes. The previous commit introduced
an ANYOFD node type corresponding to /d. An SSC never is this type.
Thus, the bits have mutually exclusive meanings, and we can use the node
type to distinguish between the two meanings of the combined bit.
An alternative implementation would have been to use the
ANYOF_HAS_NONBITMAP_NON_UTF8_MATCHES non-/d bit instead of the one
chosen. But this is used more frequently, so the disambiguation would
have been exercised more frequently, slowing execution down ever so
slightly; more importantly, this one required fewer code changes, by a
slight amount.
Diffstat (limited to 'README.symbian')
0 files changed, 0 insertions, 0 deletions