* regex.c: Declare a new type `re_char' used throughout the code for the
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 14 Mar 2000 00:27:57 +0000 (00:27 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 14 Mar 2000 00:27:57 +0000 (00:27 +0000)
commitc0b1cf90c2fd96bc8ad08e57e13d85c95fad839a
tree95204ccd45466f3b27459e36212edaa00d7eb344
parent4883f2ec5aa5e109b6f8bce8c5b87229850fb87e
* regex.c: Declare a new type `re_char' used throughout the code for the
string char type.  It's `const unsigned char' to match the rest of Emacs.
Consistently make sure all pointers to strings use it and make sure all
pointers into the pattern use `unsigned char'.
(re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
GET_CHAR_AFTER_2.
Also merge wordbound and notwordbound to reduce code duplication.
* charset.h (GET_CHAR_AFTER_2): Remove.
(GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
regex.c