diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-01-13 21:39:39 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-01-13 21:39:39 -0800 |
commit | d198142b137ed30cb8a70abf2cd0c36600e1ddd8 (patch) | |
tree | 6cb40128807ac77afb9cdbff13b6bec3c2468f54 /match.h | |
parent | ef04dd4101f7aa6af724466d1ded707861d2a57d (diff) | |
download | txr-d198142b137ed30cb8a70abf2cd0c36600e1ddd8.tar.gz txr-d198142b137ed30cb8a70abf2cd0c36600e1ddd8.tar.bz2 txr-d198142b137ed30cb8a70abf2cd0c36600e1ddd8.zip |
Bugfix in regex char ranges affecting ranges whose upper end
corresponds to the high bit of a bitmap cell: for instance
the character \x7f when the cell size is 32 bits.
* regex.c (BITCELL_ALL1): Unused macro removed.
(BITCELL_BIT): New macro to replace occurrences of a repeated
expression.
(CHAR_SET_INDEX, CHAR_SET_BIT): Updated to use BITCELL_BIT.
(L0_fill_range): Bugfix: the mask1 calculation was producing all-zero
in the condition bt1 == BITCELL_BIT; it should produce an all-ones
mask.
Diffstat (limited to 'match.h')
0 files changed, 0 insertions, 0 deletions