len = 0;
ncodes = 0;
while ((c = *s++) != '\0') {
- if (Py_ISSPACE(Py_CHARMASK(c)))
+ if (Py_ISSPACE(c))
continue;
if ('0' <= c && c <= '9') {
num = c - '0';
s = fmt;
size = 0;
while ((c = *s++) != '\0') {
- if (Py_ISSPACE(Py_CHARMASK(c)))
+ if (Py_ISSPACE(c))
continue;
if ('0' <= c && c <= '9') {
num = c - '0';
}
strcpy(argv0, className);
- if (Py_ISUPPER(Py_CHARMASK(argv0[0])))
- argv0[0] = Py_TOLOWER(Py_CHARMASK(argv0[0]));
+ if (Py_ISUPPER(argv0[0]))
+ argv0[0] = Py_TOLOWER(argv0[0]);
Tcl_SetVar(v->interp, "argv0", argv0, TCL_GLOBAL_ONLY);
PyMem_Free(argv0);
unsigned long h = 0;
unsigned long ix;
for (i = 0; i < len; i++) {
- h = (h * scale) + (unsigned char) Py_TOUPPER(Py_CHARMASK(s[i]));
+ h = (h * scale) + (unsigned char) Py_TOUPPER(s[i]);
ix = h & 0xff000000;
if (ix)
h = (h ^ ((ix>>24) & 0xff)) & 0x00ffffff;
if (!_getucname(self, code, buffer, NAME_MAXLEN, 1))
return 0;
for (i = 0; i < namelen; i++) {
- if (Py_TOUPPER(Py_CHARMASK(name[i])) != buffer[i])
+ if (Py_TOUPPER(name[i]) != buffer[i])
return 0;
}
return buffer[namelen] == '\0';
"int() arg 2 must be >= 2 and <= 36");
return NULL;
}
- while (*str != '\0' && Py_ISSPACE(Py_CHARMASK(*str))) {
+ while (*str != '\0' && Py_ISSPACE(*str)) {
str++;
}
if (*str == '+') {
if (sign < 0) {
Py_SIZE(z) = -(Py_SIZE(z));
}
- while (*str && Py_ISSPACE(Py_CHARMASK(*str))) {
+ while (*str && Py_ISSPACE(*str)) {
str++;
}
if (*str != '\0') {
if (nerr == load_errtab[j].errNo && load_errtab[j].errstr)
ERRBUF_APPEND(load_errtab[j].errstr);
}
- while (Py_ISDIGIT(Py_CHARMASK(*message[i]))) message[i]++ ;
+ while (Py_ISDIGIT(*message[i])) message[i]++ ;
ERRBUF_APPEND(message[i]);
ERRBUF_APPEND("\n");
}
break;
default:
if (level == 0) {
- if (Py_ISALPHA(Py_CHARMASK(c)))
+ if (Py_ISALPHA(c))
if (c != 'e') /* skip encoded */
max++;
}
}
}
- if (*format != '\0' && !Py_ISALPHA(Py_CHARMASK(*format)) &&
+ if (*format != '\0' && !Py_ISALPHA(*format) &&
*format != '(' &&
*format != '|' && *format != ':' && *format != ';') {
PyErr_Format(PyExc_SystemError,
}
else if (c == ':' || c == ';' || c == '\0')
break;
- else if (level == 0 && Py_ISALPHA(Py_CHARMASK(c)))
+ else if (level == 0 && Py_ISALPHA(c))
n++;
}
int ovlimit; /* required digits to overflow */
/* skip leading white space */
- while (*str && Py_ISSPACE(Py_CHARMASK(*str)))
+ while (*str && Py_ISSPACE(*str))
++str;
/* check for leading 0b, 0o or 0x for auto-base or base 16 */
/* skip all zeroes... */
while (*str == '0')
++str;
- while (Py_ISSPACE(Py_CHARMASK(*str)))
+ while (Py_ISSPACE(*str))
++str;
if (ptr)
*ptr = (char *)str;
unsigned long uresult;
char sign;
- while (*str && Py_ISSPACE(Py_CHARMASK(*str)))
+ while (*str && Py_ISSPACE(*str))
str++;
sign = *str;