+2009-05-04 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * libc/minires.c (scanline): Accommodate ctype changes which disallow
+ use of an unadorned char argument to is* macros.
+ * regex/regcomp.c: Ditto, throughout.
+ * regex/regex2.h (ISWORD): Ditto.
+
2009-05-03 Christopher Faylor <me+cygwin@cgf.cx>
* fhandler.h (fhandler_console::MAX_WRITE_CHARS): Declare.
int i;
char * startp;
for (i = 0; i < maxnum; i++) {
- while((*in) && (isspace(*in) || *in == ',')) in++;
+ while((*in) && (isspace((unsigned)*in) || *in == ',')) in++;
if (*in == 0)
break;
startp = in++;
- while((*in) && !isspace(*in) && *in != ',') in++;
+ while((*in) && !isspace((unsigned)*in) && *in != ',') in++;
list[i] = startp;
sizes[i] = in - startp + 1;
if (*in)
ordinary(p, c);
break;
case '{': /* okay as ordinary except if digit follows */
- REQUIRE(!MORE() || !isdigit(PEEK()), REG_BADRPT);
+ REQUIRE(!MORE() || !isdigit((unsigned)PEEK()), REG_BADRPT);
/* FALLTHROUGH */
default:
ordinary(p, c);
c = PEEK();
/* we call { a repetition if followed by a digit */
if (!( c == '*' || c == '+' || c == '?' ||
- (c == '{' && MORE2() && isdigit(PEEK2())) ))
+ (c == '{' && MORE2() && isdigit((unsigned)PEEK2())) ))
return; /* no repetition, we're done */
NEXT();
case '{':
count = p_count(p);
if (EAT(',')) {
- if (isdigit(PEEK())) {
+ if (isdigit((unsigned)PEEK())) {
count2 = p_count(p);
REQUIRE(count <= count2, REG_BADBR);
} else /* single number with comma */
return;
c = PEEK();
if (!( c == '*' || c == '+' || c == '?' ||
- (c == '{' && MORE2() && isdigit(PEEK2())) ) )
+ (c == '{' && MORE2() && isdigit((unsigned)PEEK2())) ) )
return;
SETERROR(REG_BADRPT);
}
} else if (EATTWO('\\', '{')) {
count = p_count(p);
if (EAT(',')) {
- if (MORE() && isdigit(PEEK())) {
+ if (MORE() && isdigit((unsigned)PEEK())) {
count2 = p_count(p);
REQUIRE(count <= count2, REG_BADBR);
} else /* single number with comma */
register int count = 0;
register int ndigits = 0;
- while (MORE() && isdigit(PEEK()) && count <= DUPMAX) {
+ while (MORE() && isdigit((unsigned)PEEK()) && count <= DUPMAX) {
count = count*10 + (GETNEXT() - '0');
ndigits++;
}
register const char *u;
register char c;
- while (MORE() && isalpha(PEEK()))
+ while (MORE() && isalpha((unsigned)PEEK()))
NEXT();
len = p->next - sp;
for (cp = cclasses; cp->name != NULL; cp++)