use Py_CHARMASK

This commit is contained in:
Guido van Rossum 1995-02-10 17:01:56 +00:00
parent 760dd1031a
commit 7f7f274839
5 changed files with 27 additions and 22 deletions

View file

@ -35,7 +35,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "modsupport.h"
#include "regexpr.h"
#include "ctype.h"
#include <ctype.h>
static object *RegexError; /* Exception */
@ -433,7 +433,7 @@ symcomp(pattern, gdict)
++o; /* eat the '>' */
break;
}
if (!isalnum(*o) && *o != '_') {
if (!isalnum(Py_CHARMASK(*o)) && *o != '_') {
o = backtrack;
break;
}